Fix sequence membership command in PG19 release notes
The PG19 release-note entry about synchronizing sequence membership [1]https://www.postgresql.org/docs/19/release-19.html#RELEASE-19-LOGICAL
attributes that operation to REFRESH SEQUENCES. It should refer to
REFRESH PUBLICATION.
REFRESH PUBLICATION adds and removes sequence entries in
pg_subscription_rel. REFRESH SEQUENCES instead resets existing sequence
entries to INIT for value resynchronization, without changing which
sequences are subscribed.
This matches the ALTER SUBSCRIPTION reference [2]https://www.postgresql.org/docs/19/sql-altersubscription.html#SQL-ALTERSUBSCRIPTION-PARAMS-REFRESH-SEQUENCES and the documentation
clarification committed as 19fbb47ef685 [3]https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=19fbb47ef6854b1e3a7311ed2f4e765426e7a611. That commit did not update
release-19.sgml.
The attached one-line patch changes the command name in that sentence.
It is based on REL_19_STABLE at a66ab9a9d382 and passes git apply --check.
Regards,
Ruohang Feng
Vonng@PGSTY
[1]: https://www.postgresql.org/docs/19/release-19.html#RELEASE-19-LOGICAL
[2]: https://www.postgresql.org/docs/19/sql-altersubscription.html#SQL-ALTERSUBSCRIPTION-PARAMS-REFRESH-SEQUENCES
[3]: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=19fbb47ef6854b1e3a7311ed2f4e765426e7a611
Attachments:
doc-fix-sequence-membership-command.patchapplication/octet-stream; name=doc-fix-sequence-membership-command.patch; x-unix-mode=0644Download+1-1
On Fri, 16 Oct 2026 at 17:03, <rh@vonng.com> wrote:
The PG19 release-note entry about synchronizing sequence membership [1]
attributes that operation to REFRESH SEQUENCES. It should refer to
REFRESH PUBLICATION.REFRESH PUBLICATION adds and removes sequence entries in
pg_subscription_rel. REFRESH SEQUENCES instead resets existing sequence
entries to INIT for value resynchronization, without changing which
sequences are subscribed.This matches the ALTER SUBSCRIPTION reference [2] and the documentation
clarification committed as 19fbb47ef685 [3]. That commit did not update
release-19.sgml.The attached one-line patch changes the command name in that sentence.
It is based on REL_19_STABLE at a66ab9a9d382 and passes git apply --check.
Thanks for the patch, one suggestion, how about we mention something like:
This is done by REFRESH PUBLICATION and by ADD PUBLICATION, DROP
PUBLICATION, and SET PUBLICATION, which add newly published sequences
to the subscription and remove dropped ones. REFRESH SEQUENCES does
not change which sequences are subscribed.
Regards,
Vignesh
On Thu, Oct 22, 2026 at 09:28:31PM +0530, vignesh C wrote:
On Fri, 16 Oct 2026 at 17:03, <rh@vonng.com> wrote:
The PG19 release-note entry about synchronizing sequence membership [1]
attributes that operation to REFRESH SEQUENCES. It should refer to
REFRESH PUBLICATION.REFRESH PUBLICATION adds and removes sequence entries in
pg_subscription_rel. REFRESH SEQUENCES instead resets existing sequence
entries to INIT for value resynchronization, without changing which
sequences are subscribed.This matches the ALTER SUBSCRIPTION reference [2] and the documentation
clarification committed as 19fbb47ef685 [3]. That commit did not update
release-19.sgml.The attached one-line patch changes the command name in that sentence.
It is based on REL_19_STABLE at a66ab9a9d382 and passes git apply --check.Thanks for the patch, one suggestion, how about we mention something like:
This is done by REFRESH PUBLICATION and by ADD PUBLICATION, DROP
PUBLICATION, and SET PUBLICATION, which add newly published sequences
to the subscription and remove dropped ones. REFRESH SEQUENCES does
not change which sequences are subscribed.
Okay, I have applied the attached patch based on your instructions. Let
me know if I need to change anything.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Do not let urgent matters crowd out time for investment in the future.
Attachments:
REL_19_STABLE.difftext/x-diff; charset=us-asciiDownload+1-2
On Tue, Oct 27, 2026 at 2:17 PM Bruce Momjian <bruce@momjian.us> wrote:
On Thu, Oct 22, 2026 at 09:28:31PM +0530, vignesh C wrote:
On Fri, 16 Oct 2026 at 17:03, <rh@vonng.com> wrote:
The PG19 release-note entry about synchronizing sequence membership [1]
attributes that operation to REFRESH SEQUENCES. It should refer to
REFRESH PUBLICATION.REFRESH PUBLICATION adds and removes sequence entries in
pg_subscription_rel. REFRESH SEQUENCES instead resets existing sequence
entries to INIT for value resynchronization, without changing which
sequences are subscribed.This matches the ALTER SUBSCRIPTION reference [2] and the documentation
clarification committed as 19fbb47ef685 [3]. That commit did not update
release-19.sgml.The attached one-line patch changes the command name in that sentence.
It is based on REL_19_STABLE at a66ab9a9d382 and passes git apply --check.Thanks for the patch, one suggestion, how about we mention something like:
This is done by REFRESH PUBLICATION and by ADD PUBLICATION, DROP
PUBLICATION, and SET PUBLICATION, which add newly published sequences
to the subscription and remove dropped ones. REFRESH SEQUENCES does
not change which sequences are subscribed.Okay, I have applied the attached patch based on your instructions. Let
me know if I need to change anything.
Hi.
I just saw this change.
Personally, I find all those "This is enabled" bullets in this Logical
Replication section to be potentially misleading because SUBSCRIPTION
"enabled" or "disabled" [1]https://www.postgresql.org/docs/current/sql-createsubscription.html#SQL-CREATESUBSCRIPTION-PARAMS-WITH-ENABLED is an entirely different and unrelated
concept to the sequence support.
IMO all those points might be better expressed like
"This occurs during ....", or
"This happens when ...."
"This is achieved by ..." or
etc.
e.g. choose anything that avoids the word "enabled"
------
Allow sequence values stored in subscribers to match the publisher
(Vignesh C) § § §
* This is enabled during CREATE SUBSCRIPTION, ALTER SUBSCRIPTION ...
REFRESH PUBLICATION, and ALTER SUBSCRIPTION ... REFRESH SEQUENCES. The
latter only updates values, not sequence existence. Function
pg_get_sequence_data() allows inspection of sequence synchronization.
Allow CREATE/ALTER PUBLICATION to publish all sequences (Vignesh C,
Tomas Vondra) §
* This is enabled with the ALL SEQUENCES clause.
Allow ALTER SUBSCRIPTION on publications to synchronize the existence
of sequences on subscribers to match the publisher (Vignesh C) §
* This is enabled with the REFRESH SEQUENCES clause.
------
Kind Regards,
Peter Smith.
Fujitsu Australia
On Tue, Oct 27, 2026 at 03:25:31PM +1100, Peter Smith wrote:
I just saw this change.
Personally, I find all those "This is enabled" bullets in this Logical
Replication section to be potentially misleading because SUBSCRIPTION
"enabled" or "disabled" [1] is an entirely different and unrelated
concept to the sequence support.IMO all those points might be better expressed like
"This occurs during ....", or
"This happens when ...."
"This is achieved by ..." or
etc.e.g. choose anything that avoids the word "enabled"
I adjusted two places where "enable" was not the right word; applied
patch attached.
For these two sentences that you mentioned:
* This is enabled with the ALL SEQUENCES clause.
* This is enabled with the REFRESH SEQUENCES clause.
I realize "enabled" could be an overused concept in this text, but using
something like:
This occurs during the ALL SEQUENCES clause.
This happens when the ALL SEQUENCES clause.
This is achieved by the ALL SEQUENCES clause.
seem much less clear than the existing text.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Do not let urgent matters crowd out time for investment in the future.
Attachments:
REL_19_STABLE.difftext/x-diff; charset=us-asciiDownload+2-2
On Wed, Oct 28, 2026 at 8:47 AM Bruce Momjian <bruce@momjian.us> wrote:
On Tue, Oct 27, 2026 at 03:25:31PM +1100, Peter Smith wrote:
I just saw this change.
Personally, I find all those "This is enabled" bullets in this Logical
Replication section to be potentially misleading because SUBSCRIPTION
"enabled" or "disabled" [1] is an entirely different and unrelated
concept to the sequence support.IMO all those points might be better expressed like
"This occurs during ....", or
"This happens when ...."
"This is achieved by ..." or
etc.e.g. choose anything that avoids the word "enabled"
I adjusted two places where "enable" was not the right word; applied
patch attached.For these two sentences that you mentioned:
* This is enabled with the ALL SEQUENCES clause.
* This is enabled with the REFRESH SEQUENCES clause.I realize "enabled" could be an overused concept in this text, but using
something like:This occurs during the ALL SEQUENCES clause.
This happens when the ALL SEQUENCES clause.
This is achieved by the ALL SEQUENCES clause.seem much less clear than the existing text.
Oh, I didn't mean for those suggestions to be taken literally. The
ellipsis "..." and "etc." were supposed to mean -- choose any
replacement wording you want that avoids saying "enabled".
e.g.
This is done using the ALL SEQUENCES clause.
This is done using the REFRESH SEQUENCES clause.
(or whatever)
======
Kind Regards,
Peter Smith.
Fujitsu Australia
On Wed, Oct 28, 2026 at 09:30:12AM +1100, Peter Smith wrote:
I realize "enabled" could be an overused concept in this text, but using
something like:This occurs during the ALL SEQUENCES clause.
This happens when the ALL SEQUENCES clause.
This is achieved by the ALL SEQUENCES clause.seem much less clear than the existing text.
Oh, I didn't mean for those suggestions to be taken literally. The
ellipsis "..." and "etc." were supposed to mean -- choose any
replacement wording you want that avoids saying "enabled".e.g.
This is done using the ALL SEQUENCES clause.
This is done using the REFRESH SEQUENCES clause.
Uh, "This is done" seems very imprecise. Even "This is accomplished"
seems worse.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Do not let urgent matters crowd out time for investment in the future.