You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Six extensions are installed in the public schema. Extensions in public are visible and can clutter the public namespace; moving them to a dedicated schema (e.g. extensions) is recommended.
Affected objects
citext
postgis
pg_net
uuid-ossp
pgcrypto
pg_trgm
Remediation
Create a schema for extensions if needed: CREATE SCHEMA IF NOT EXISTS extensions;
Move each extension using ALTER EXTENSION ... SET SCHEMA extensions; where supported, or drop and re-create in the new schema. Check Postgres extension docs and Supabase migration practices.
Moves extensions from public to extensions when the migration runs as the extension owner (citext, postgis, uuid-ossp, pgcrypto, pg_trgm). pg_net is not moved (it does not support SET SCHEMA).
Sets search_path for roles anon, authenticated, service_role, postgres to public, extensions, pg_catalog so unqualified references keep working after moves.
Applied locally; extensions remained in public here because migrations did not run as extension owner. On Supabase Cloud, running as project owner (or running the ALTERs in SQL as owner) will move them.
Activity
thinkclay commentedon Mar 10, 2026
Done.
405_move_extensions_to_extensions_schema.sql:extensionsschema if missing.publictoextensionswhen the migration runs as the extension owner (citext, postgis, uuid-ossp, pgcrypto, pg_trgm).pg_netis not moved (it does not supportSET SCHEMA).search_pathfor roles anon, authenticated, service_role, postgres topublic, extensions, pg_catalogso unqualified references keep working after moves.