From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: kdg.dev@gmail.com
Subject: Ambiguous description on new columns
Date: Mon, 20 May 2024 15:26:27 +0000
Message-ID: <171621878740.686.11325940592820985181@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/logical-replication-col-lists.html
Description:
The documentation on this page mentions:
"If no column list is specified, any columns added later are automatically
replicated."
It feels ambiguous what this could mean. Does it mean:
1/ That if you alter the table on the publisher and add a new column, it
will be replicated
2/ If you add a column list later and add a column to it, it will be
replicated
In both cases, does the subscriber automatically create this column if it
wasn't there before? I recall reading that the initial data synchronization
requires the schema of the publisher database to be created on the
subscriber first. But then later updates sync newly created columns? I don't
recall any pages on logical replication mentioning this, up to this point.
Regards,
Koen De Groote
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, kdg.dev@gmail.com
Subject: Re: Ambiguous description on new columns
In-Reply-To: <171621878740.686.11325940592820985181@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox