Re: Pgoutput not capturing the generated columns

From: Shubham Khanna <khannashubham1197(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Rajendra Kumar Dangwal <dangwalrajendra888(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "euler(at)eulerto(dot)com" <euler(at)eulerto(dot)com>
Subject: Re: Pgoutput not capturing the generated columns
Date: 2024-08-16 04:34:46
Message-ID: CAHv8RjKH8MJhodtN5tXUD8pp=PKOomrnSUXcPCuwseu=bS75-Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 8, 2024 at 12:43 PM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> Hi Shubham,
>
> I think the v25-0001 patch only half-fixes the problems reported in my
> v24-0001 review.
>
> ~
>
> Background (from the commit message):
> This commit enables support for the 'include_generated_columns' option
> in logical replication, allowing the transmission of generated column
> information and data alongside regular table changes.
>
> ~
>
> The broken TAP test scenario in question is replicating from a
> "not-generated" column to a "generated" column. As the generated
> column is not on the publishing side, IMO the
> 'include_generated_columns' option should have zero effect here.
>
> In other words, I expect this TAP test for 'include_generated_columns
> = true' case should also be failing, as I wrote already yesterday:
>
> +# FIXME
> +# Since there is no generated column on the publishing side this should give
> +# the same result as the previous test. -- e.g. something like:
> +# ERROR: logical replication target relation
> "public.tab_nogen_to_gen" is missing
> +# replicated column: "b"

I have fixed the given comments. The attached v26-0001 Patch contains
the required changes.

Thanks and Regards,
Shubham Khanna.

Attachment Content-Type Size
v26-0001-Enable-support-for-include_generated_columns-opt.patch application/octet-stream 106.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-08-16 04:48:15 Re: libpq minor TOCTOU violation
Previous Message Yugo Nagata 2024-08-16 04:31:11 Re: define PG_REPLSLOT_DIR