Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docker: properly notify PostgREST to reload schema cache on DDL command end

Benjamin Tan6edf5b84c809
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