pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

Document the privileges required to run pgroll

Open divyenduz opened this issue 1 year ago • 2 comments

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)?

divyenduz avatar Jul 08 '24 15:07 divyenduz

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

clarkbw avatar Aug 05 '24 13:08 clarkbw

This also prevents pgroll from being used with Digital Ocean managed Postgres

ilyakooo0 avatar Dec 19 '24 07:12 ilyakooo0