Re: logical decoding and replication of sequences
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Noah Misch <noah@leadboat.com>, Tomas Vondra <tomas.vondra@enterprisedb.com>,
Amit Kapila <amit.kapila16@gmail.com>, Petr Jelinek <petr.jelinek@enterprisedb.com>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-08-23T15:04:22Z
Lists: pgsql-hackers
On Tue, Aug 23, 2022 at 12:33 AM Thomas Munro <thomas.munro@gmail.com> wrote: > On Tue, Aug 23, 2022 at 4:21 PM Michael Paquier <michael@paquier.xyz> wrote: > > On Mon, Aug 08, 2022 at 06:15:46PM +1200, Thomas Munro wrote: > > > The attached patch that simply moves the cache invalidation into > > > report_invalid_record(), so that it's reached by the above code and > > > everything else that reports an error, seems to fix the problem in > > > src/bin/pg_ctl/t/003_promote.pl with Noah's spanner-in-the-works patch > > > applied, and passes check-world without it. I need to look at this > > > some more, though, and figure out if it's the right fix. > > > > Thomas, where are you on this open item? A potential PANIC at > > promotion is bad. One possible exit path would be to switch the > > default of recovery_prefetch, though that's a kind of last-resort > > option seen from here. > > I will get a fix committed this week -- I need to study > Horiguchi-san's analysis... Hi! I haven't been paying attention to this thread, but my attention was just drawn to it, and I'm wondering if the issue you're trying to track down here is actually the same as what I reported yesterday here: https://www.postgresql.org/message-id/CA+TgmoY0Lri=fCueg7m_2R_bSspUb1F8OFycEGaHNJw_EUW-=Q@mail.gmail.com -- Robert Haas EDB: http://www.enterprisedb.com
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