2ndQuadrant / pglogical

Logical Replication extension for PostgreSQL 17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4 (Postgres), providing much faster replication than Slony, Bucardo or Londiste, as well as cross-version upgrades.
http://2ndquadrant.com/en/resources/pglogical/
Other
1.01k stars 154 forks source link

ERROR: permission denied for schema pglogical - DDL triggers disabled #483

Open pasolid opened 2 months ago

pasolid commented 2 months ago

Hi,

I have a problem when I try to drop index. I don’t have DDL triggers. I tested doing next:

Scenario that works

Failing scenario

Error

SQL Error [42501]: ERROR: permission denied for schema pglogical

What I don’t understand is why when there aren’t explicit DDL triggers, a DROP INDEX specifically failing. Creation of index is working, and even DDL like create/drop table is working.

I know there is an option to gran permissions USAGE on pglogical (like this: GRANT USAGE ON SCHEMA pglogical TO my_user) but it is not desired solution in my case.

Postgres version

AWS RDS
PostgreSQL 16.1
PostgreSQL 16.1 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6), 64-bit