Pgoutput not capturing the generated columns

From: Rajendra Kumar Dangwal <dangwalrajendra888(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Pgoutput not capturing the generated columns
Date: 2023-07-19 03:53:47
Message-ID: 91BF7AB5-076F-443E-8C4E-B63A1F03E291@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2023-07-19 08:17:25 Re: Effects of dropping a large table
Previous Message Sahil Sojitra 2023-07-19 03:14:57 Fwd: Regarding Installation of PostgreSQL