Re: Fix publisher-side sequence permission reporting
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: vignesh C <vignesh21@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Tristan Partin <tristan@partin.io>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-26T07:04:21Z
Lists: pgsql-hackers
Attachments
- v2-v15-0001-Fix-unlogged-sequence-corruption-after-standby-pr.txt (text/plain)
- v2-0001-Fix-unlogged-sequence-corruption-after-standby-pr.patch (application/octet-stream) patch v2-0001
- v2-v18-v17-0001-Fix-unlogged-sequence-corruption-after-standby-pr.txt (text/plain)
- v2-v16-0001-Fix-unlogged-sequence-corruption-after-standby-pr.txt (text/plain)
On Wed, Jun 24, 2026 at 7:49 PM vignesh C <vignesh21@gmail.com> wrote: > Thanks for the patch. I verified that it fixes the issue with reading > unlogged sequences on a promoted standby. Thanks for testing! > Do you think it would be worthwhile to add a test for this scenario, > or do you feel the additional test is not necessary in this case? I think it's worth adding a test for this scenario, so I've added one to the patch. The test uses nextval() to read the unlogged sequence instead of pg_get_sequence_data(), since this patch needs to be backpatched to v15, while pg_get_sequence_data() was introduced in v19. Attached are updated patches for master and the stable branches. Regards, -- Fujii Masao
Commits
-
Fix unlogged sequence corruption after standby promotion
- d2980067bc3b 15 (unreleased) landed
- 913d3b610ccd 16 (unreleased) landed
- a1ed6a9a031a 17 (unreleased) landed
- 627605713074 18 (unreleased) landed
- 22af34b98362 19 (unreleased) landed
- 8e684ce11dda master landed
-
doc: Clarify pg_get_sequence_data() privileges and NULL results
- 031904048aa2 19 (unreleased) landed
-
Fix misreporting of publisher sequence permissions during sync
- d4a657b0a4db 19 (unreleased) landed
-
Introduce pg_sequence_read_tuple().
- c8b06bb969bf 18.0 cited