Re: Update Examples in Logical Replication Docs

Peter Smith <smithpb2250@gmail.com>

From: Peter Smith <smithpb2250@gmail.com>
To: Shlok Kyal <shlok.kyal.oss@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-22T02:15:18Z
Lists: pgsql-hackers
On Tue, Jul 22, 2025 at 3:27 AM Shlok Kyal <shlok.kyal.oss@gmail.com> wrote:
>
> Hi,
>
> While going through the example for column lists [1] and row filters
> [2] in logical replication, I found that the output of "\dRp+" is not
> updated as per PostgreSQL 18. In PG 18, a new column "Generated
> columns' was added in "\dRp+" by commit [3], so I think we should
> update the docs to reflect the same. I have attached a patch with the
> changes.
> The changes apply to both the branches REL_18_STABLE and HEAD.
>

Good catch. The patch LGTM (by inspection only -- I did not try it).

Note there is a typo in the commit message:
/Defination/Definition/

======
Kind Regards,
Peter Smith.
Fujitsu Australia



Commits

  1. Doc: Fix logical replication examples.

  2. Replicate generated columns when 'publish_generated_columns' is set.