xataio / pgroll

PostgreSQL zero-downtime migrations made easy
https://www.xata.io
Apache License 2.0
3.87k stars 69 forks source link

Document the privileges required to run pgroll #367

Open divyenduz opened 4 months ago

divyenduz commented 4 months ago

I am trying to initialize pgroll on a local Postgres (running via docker using supabase/postgres image). I get the following error:

pgroll init --postgres-url 'postgres://postgres:postgres@localhost:5432/cal?sslmode=disable'
  ERROR   Failed to initialize pgroll: pq: permission denied to create event trigger "pg_roll_handle_ddl"
Error: pq: permission denied to create event trigger "pg_roll_handle_ddl"

What are the privileges to run pgroll init (and for it to function properly)?

clarkbw commented 3 months ago

Supabase doesn't support event triggers, CREATE EVENT TRIGGER https://supabase.com/docs/guides/database/postgres/roles-superuser