[PATCH] Logical decoding of TRUNCATE - Mailing list pgsql-hackers

From Marco Nenciarini
Subject [PATCH] Logical decoding of TRUNCATE
Date
Msg-id 269bf0d2-6ac4-c032-6979-22aad6a9f5fb@2ndquadrant.it
Whole thread Raw
Responses Re: [PATCH] Logical decoding of TRUNCATE
List pgsql-hackers
Hi,

This patch implements support for TRUNCATE statements
in logical replication. The work has mainly done by Simon Riggs then
finished by me. Tests are written by me.

TRUNCATE is treated as a form of DELETE for the purpose of deciding
whether to publish, or not.

The "TRUNCATE behavior when session_replication_role = replica"[1] patch
is required from this patch to work correctly with tables referenced by
foreign keys.

[1] https://commitfest.postgresql.org/16/1447/

Regards,
Marco

--
Marco Nenciarini - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
marco.nenciarini@2ndQuadrant.it | www.2ndQuadrant.it

Attachment

pgsql-hackers by date:

Previous
From: "Tels"
Date:
Subject: Re: TAP test module - PostgresClient
Next
From: Vladimir Svedov
Date:
Subject: array_ndims never returns zero