Re: logical decoding and replication of sequences
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: thomas.munro@gmail.com
Cc: noah@leadboat.com, tomas.vondra@enterprisedb.com,
amit.kapila16@gmail.com, petr.jelinek@enterprisedb.com,
peter.eisentraut@enterprisedb.com, pgsql-hackers@lists.postgresql.org
Date: 2022-08-08T08:56:44Z
Lists: pgsql-hackers
At Mon, 08 Aug 2022 17:33:22 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in > If WaitForWALToBecomeAvailable returned by promotion, ReadPageInteral > misses the chance to inavlidate reader-state. That state is not an > error while in StandbyMode. Mmm... Maybe I wanted to say: (Still I'm not sure the rewrite works..) If WaitForWALToBecomeAvailable returned by promotion, ReadPageInteral would miss the chance to invalidate reader-state. When XLogPageRead is called in blocking mode while in StandbyMode (that is, the traditional condition) , the function continues retrying until it succeeds, or returns XLRAD_FAIL if promote is triggered. In other words, it was not supposed to return non-failure while the header validation is failing while in standby mode. But while in nonblocking mode, the function can return non-failure with lastSourceFailed = true, which seems wrong. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
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