Ignore partitioned tables when processing ON COMMIT DELETE ROWS

Michael Paquier <michael@paquier.xyz>

Commit: 948af52324fb0ab635ebb1c1379980dbfc589aba
Author: Michael Paquier <michael@paquier.xyz>
Date: 2018-11-05T00:15:08Z
Releases: 11.1
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

Files

PathChange+/−
src/backend/catalog/heap.c modified +7 −0
src/test/regress/expected/temp.out modified +17 −0
src/test/regress/sql/temp.sql modified +14 −0

Discussion