pgsql: Ignore partitioned tables when processing ON COMMIT DELETE ROWS

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Ignore partitioned tables when processing ON COMMIT DELETE ROWS
Date: 2018-11-05 00:16:20
Message-ID: E1gJSZ2-0007LW-Ew@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/70c38e7080128e27cb6b9e20237f2c36807b0000

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2018-11-05 02:05:15 pgsql: Block creation of partitions with open references to its parent
Previous Message Tom Lane 2018-11-04 21:57:52 pgsql: Release notes for 11.1, 10.6, 9.6.11, 9.5.15, 9.4.20, 9.3.25.