Ignore partitioned tables when processing ON COMMIT DELETE ROWS
authorMichael Paquier <[email protected]>
Mon, 5 Nov 2018 00:15:25 +0000 (09:15 +0900)
committerMichael Paquier <[email protected]>
Mon, 5 Nov 2018 00:15:25 +0000 (09:15 +0900)
commit70c38e7080128e27cb6b9e20237f2c36807b0000
treed40b4bda9989f88071b173ba18bc8f945b97cc7a
parentd7c3719298e631cfd73e385a031c86efc11ab726
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
src/backend/catalog/heap.c
src/test/regress/expected/temp.out
src/test/regress/sql/temp.sql