From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ignore partitioned tables when processing ON COMMIT DELETE ROWS
Date: Mon, 05 Nov 2018 00:16:20 +0000
Message-ID: <E1gJSZ2-0007LV-En@gemulon.postgresql.org> (raw)
Ignore partitioned tables when processing ON COMMIT DELETE ROWS
Those tables have no physical storage, making this option unusable with
partition trees as at commit time an actual truncation was attempted.
There are still issues with the way ON COMMIT actions are done when
mixing several action types, however this impacts as well inheritance
trees, so this issue will be dealt with later.
Reported-by: Rajkumar Raghuwanshi
Author: Amit Langote
Reviewed-by: Michael Paquier, Tom Lane
Discussion: https://postgr.es/m/CAKcux6mhgcjSiB_egqEAEFgX462QZtncU8QCAJ2HZwM-wWGVew@mail.gmail.com
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/948af52324fb0ab635ebb1c1379980dbfc589aba
Modified Files
--------------
src/backend/catalog/heap.c | 7 +++++++
src/test/regress/expected/temp.out | 17 +++++++++++++++++
src/test/regress/sql/temp.sql | 14 ++++++++++++++
3 files changed, 38 insertions(+)
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-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Ignore partitioned tables when processing ON COMMIT DELETE ROWS
In-Reply-To: <E1gJSZ2-0007LV-En@gemulon.postgresql.org>
References: <E1gJSZ2-0007LV-En@gemulon.postgresql.org>
* 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