Skip to content
Discussion options

You must be logged in to vote

@nbarrow-inspire-labs I just went down the rabbit hole trying to make sense of this one. I was able to reproduce the same error syntax error at or near "TABLES" on PG v15.1 when executing from the studio SQL editor.

Turns out there is some minor sanitization happening in the studio sql editor which I believe is preventing this (this should get fixed at some point - see constructive-io/pgsql-parser#93). However even if you connect to your DB directly (eg. via psql CLI), you will get: ERROR: must be superuser to add or set schemas. Seems like superuser is required to perform this, which isn't available at this time for security reasons (see https://github.com/orgs/supabase/discussions/9314).

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@silentworks
Comment options

@ghost
Comment options

@ghost
Comment options

@gregnr
Comment options

@ghost
Comment options

@gregnr
Comment options

@igoramidzic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realtime Supabase Realtime related
3 participants