From: Rajendra Kumar Dangwal <dangwalrajendra888@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Pgoutput not capturing the generated columns
Date: Wed, 19 Jul 2023 09:23:47 +0530
Message-ID: <91BF7AB5-076F-443E-8C4E-B63A1F03E291@gmail.com> (raw)
Hi PG Users.
We are using Debezium to capture the CDC events into Kafka.
With decoderbufs and wal2json plugins the connector is able to capture the generated columns in the table but not with pgoutput plugin.
We tested with the following example:
CREATE TABLE employees (
id SERIAL PRIMARY KEY,
first_name VARCHAR(50),
last_name VARCHAR(50),
full_name VARCHAR(100) GENERATED ALWAYS AS (first_name || ' ' || last_name) STORED
);
// Inserted few records when the connector was running
Insert into employees (first_name, last_name) VALUES ('ABC' , 'XYZ’);
With decoderbufs and wal2json the connector is able to capture the generated column `full_name` in above example. But with pgoutput the generated column was not captured.
Is this a known limitation of pgoutput plugin? If yes, where can we request to add support for this feature?
Thanks.
Rajendra.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: dangwalrajendra888@gmail.com
Subject: Re: Pgoutput not capturing the generated columns
In-Reply-To: <91BF7AB5-076F-443E-8C4E-B63A1F03E291@gmail.com>
References: <91BF7AB5-076F-443E-8C4E-B63A1F03E291@gmail.com>
* 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