From 6edf5b84c80986f5c89725942b265445fa2a1005 Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Fri, 14 Jan 2022 15:15:00 +0800 Subject: [PATCH] docker: properly notify PostgREST to reload schema cache on DDL command end --- docker/volumes/db/init/03-post-setup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/volumes/db/init/03-post-setup.sql b/docker/volumes/db/init/03-post-setup.sql index 1304ae6ae09..64dc7399fd5 100644 --- a/docker/volumes/db/init/03-post-setup.sql +++ b/docker/volumes/db/init/03-post-setup.sql @@ -4,7 +4,7 @@ RETURNS event_trigger LANGUAGE plpgsql AS $$ BEGIN - NOTIFY ddl_command_end; + NOTIFY pgrst, 'reload schema'; END; $$; CREATE EVENT TRIGGER api_restart ON ddl_command_end