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.02k stars 154 forks source link

Feature request: add option to pglogical.replicate_ddl_command, which allows only replicate DDL, not perform locally #490

Open dusatvoj opened 4 days ago

dusatvoj commented 4 days ago

Hello, I'm struggling with pglogical and DDL replication. I found a function pglogical.replicate_ddl_command().

This function is great but as postgresql EVENT TRIGGER can't be executed INSTEAD OF but can execute function only at DDL end / DDL start so I can't use this function seamlessly with any application.

If this function have options execute_locally := true / false, I can use it with event trigger to execute remotely current_query() but not locally.

For backward compatibility should be default true, of course.