Question: What PostgreSQL version are you using? The feature was introduced in v11.
Answer: I am using the 16.0 Postgresql version.
db1=> SELECT version();
version
-----------------------------------------------------------------------------------------------------
PostgreSQL 16.0 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
(1 row)
Question: How exactly is the publication defined? Perhaps TRUNCATE is excluded.
I am not using the subscribe/publication model . but i have created a replication slot on the source database and then i am calling below procedure to get the details from replication slot:
select data from pg_logical_slot_peek_changes('db1_slot', NULL, NULL, 'pretty-print', '1');
In the case of TRUNCATE , the above procedure does not show up any records. however this procedure shows up insert, update and delete events.
As you mentioned TRUNCATE is excluded, is there any way to exclude TRUNCATE ?
Thanks
Arvind