Re: logical decoding and replication of sequences
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Petr Jelinek <petr.jelinek@enterprisedb.com>
Date: 2021-12-08T09:04:37Z
Lists: pgsql-hackers
On 08.12.21 01:23, Tomas Vondra wrote: >> The argument "create" for fill_seq_with_data() is always true (and >> patch 0002 removes it). So I'm not sure if it's needed. If it is, it >> should be documented somewhere. >> > > Good point. I think it could be removed, but IIRC it'll be needed when > adding sequence decoding to the built-in replication, and that patch is > meant to be just an implementation of the API, without changing WAL. > > OTOH I don't see it in the last version of that patch (in ResetSequence2 > call) so maybe it's not really needed. I've kept it for now, but I'll > investigate. Ok, please check. If it is needed, perhaps then we need a way for test_decoding() to simulate it, for testing. But perhaps it's not needed. >> The order of the new fields sequence_cb and stream_sequence_cb is a >> bit inconsistent compared to truncate_cb and stream_truncate_cb. >> Maybe take another look to make the order more uniform. >> > > You mean in OutputPluginCallbacks? I'd actually argue it's the truncate > callbacks that are inconsistent - in the regular section truncate_cb is > right before commit_cb, while in the streaming section it's at the end. Ok, that makes sense. Then leave yours. When the question about fill_seq_with_data() is resolved, I have no more comments on this part.
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