| From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, vignesh C <vignesh21(at)gmail(dot)com> |
| Subject: | DOCS - clarify CREATE SUBSCRIPTION only synchronizes sequences when copy_data=true |
| Date: | 2026-06-25 00:51:44 |
| Message-ID: | CAHut+PsrVntfrJ8gV45+6=1bs5dTWD5mU7Q6aKrBnf1vmyZQkQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
While reviewing another patch I referred to the information of "29.7.
Replicating Sequences #" [1] which says:
"use CREATE SUBSCRIPTION to initially synchronize the published sequences."
AFAIK, that is not entirely correct -- synchronisation of sequences
happens only when the "copy_data" option is true. Although copy_data
default is true, the original text was misleading. Anyway, it misled
me.
PSA a patch to clarify that "copy_data = true" is needed.
======
[1] https://www.postgresql.org/docs/19/logical-replication-sequences.html
Kind Regards,
Peter Smith.
Fujitsu Australia
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-DOCS-clarify-copy_data-is-needed-to-synchronise-s.patch | application/octet-stream | 1.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2026-06-25 00:58:57 | Re: Include sequences in publications created by pg_createsubscriber |
| Previous Message | Jeff Davis | 2026-06-24 23:43:28 | Re: Small patch to improve safety of utf8_to_unicode(). |