Re: logical decoding and replication of sequences
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Euler Taveira <euler@eulerto.com>, Amit Kapila <amit.kapila16@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
Petr Jelinek <petr.jelinek@enterprisedb.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-02-23T19:18:30Z
Lists: pgsql-hackers
On 2/23/22 18:33, Euler Taveira wrote: > On Wed, Feb 23, 2022, at 1:07 PM, Tomas Vondra wrote: >> Maybe, but I don't think it's very common to have that many >> schemas added to the same publication. And it probably does not >> make much difference whether you have 1000 or 2000 items in the >> list - either both are acceptable or unacceptable, I think. > > Wouldn't it confuse users? Hey, duplicate publication. How? Wait. > Doh. > I don't follow. Duplicate publications? This talks about rows in pg_publication_namespace, not pg_publication. >> I think just hard-coding this into CreatePublicationStmt would >> work, but it'll be an issue once/if we start adding more options. >> I'm not sure if it makes sense to replicate other relkinds, but >> maybe DDL? > > Materialized view? As you mentioned DDL, maybe we can use the CREATE > PUBLICATION syntax to select which DDL commands we want to > replicate. > Well, yeah. But that doesn't really say whether to hard-code it into the CREATE PUBLICATION syntax or cover it by PublicationObjSpec. Hard-coding it also means we can't ALTER the publication to be FOR ALL TABLES etc. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Fix cache invalidation bug in recovery_prefetch.
- d0d934490020 15.0 landed
- 932b01630095 16.0 landed
-
Revert "Logical decoding of sequences"
- 2c7ea57e56ca 15.0 landed
-
Minor improvements in sequence decoding code and docs
- 05843b1aa49d 15.0 landed
-
Handle sequences in preprocess_pubobj_list
- 002c9dd97a0c 15.0 landed
-
Update tab-completion for CREATE PUBLICATION with sequences
- 2d2232933b02 15.0 landed
-
Add decoding of sequences to built-in replication
- 75b1521dae1f 15.0 landed
-
Stabilize test_decoding touching with sequences
- a180c2b34de0 15.0 landed
-
Call ReorderBufferProcessXid from sequence_decode
- d5ed9da41d96 15.0 landed
-
Add decoding of sequences to test_decoding
- 80901b32913f 15.0 landed
-
Replace Test::More plans with done_testing
- 549ec201d613 15.0 cited
-
Logical decoding of sequences
- 0da92dc530c9 15.0 landed
-
Respect permissions within logical replication.
- a2ab9c06ea15 15.0 cited