Logical Replication of DDLs
summary
Adds DDL replication to PostgreSQL via a new publication parameter ddl and a new WAL record type xlog logical ddl message. Implementation captures DDL with event triggers, encodes a structured JSON payload (based on a departing utility) so the subscriber reconstructs and executes commands, supports table/index granularity initially, handles CREATE TABLE AS, name and ownership mapping, and transforms unsafe cases. Development appears as 8 patches on the pgsql-hackers thread with testing, while global-object replication and automated initial schema sync remain future work.
AI-written summary · about
chapters (3)
related talks
29mLogical replication theory and concepts
59mLogical Replication...LIVE!
54mUnderstanding Logical Decoding and Replication
31mPast, Present, and Future: Logical Decoding and Replication in PostgreSQL
44mThe journey towards active-active replication in PostgreSQL
38mA journey into postgresql logical replication
50mPGLogical the logical replication for Postgresql
24mAutomatic DDL Replication with pgEdge Distributed Postgres
