Re: [PATCH] Fix stale relation close in sequence synchronization
Ayush Tiwari <ayushtiwari.slg01@gmail.com>
From: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
To: vignesh C <vignesh21@gmail.com>
Cc: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>,
Amit Kapila <amit.kapila16@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-30T06:46:35Z
Lists: pgsql-hackers
Attachments
- v5-0001-Fix-stale-relation-close-in-sequence-synchronization.patch (application/octet-stream) patch v5-0001
Hi, On Thu, 30 Apr 2026 at 11:27, vignesh C <vignesh21@gmail.com> wrote: > > Consider updating the error reported in report_sequence_errors to > convey that the failure could be due to either a missing sequence or > insufficient privileges (e.g., "missing sequence or insufficient > privilege on publisher"). While making this change, also update the > missing_seqs_idx variable name and the associated comments to > accurately reflect the broader scope of the condition. > Agreed. I have updated the warning to say "missing or inaccessible sequence on publisher", so it covers both cases where the sequence is actually missing and cases where the publisher-side role cannot access its sequence data. I also renamed the related variables from missing_* to unavailable_*, and updated the associated comments and DEBUG message to avoid implying that the sequence is necessarily absent on the publisher. The TAP expectations for both the dropped-sequence case and the insufficient-privileges case have been updated to match the new wording. Attached is v5 with these changes. Thoughts? Regards, Ayush
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix BF failure introduced in commit 2bf6c9ff71.
- f67dbd8398c0 19 (unreleased) landed
-
Fix double table_close of sequence_rel in copy_sequences().
- 2bf6c9ff71c9 19 (unreleased) landed
-
Fix BF failure introduced by commit b3f6b14cf4.
- def0ce337068 17.0 cited