DOCS - clarify CREATE SUBSCRIPTION only synchronizes sequences when copy_data=true - Mailing list pgsql-hackers

From Peter Smith
Subject DOCS - clarify CREATE SUBSCRIPTION only synchronizes sequences when copy_data=true
Date
Msg-id CAHut+PsrVntfrJ8gV45+6=1bs5dTWD5mU7Q6aKrBnf1vmyZQkQ@mail.gmail.com
Whole thread
List 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

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Small patch to improve safety of utf8_to_unicode().
Next
From: Peter Smith
Date:
Subject: Re: Include sequences in publications created by pg_createsubscriber