aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-02-07 17:09:36 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-02-07 17:09:36 -0300
commitce054a8cd4f4faf3479050feb5d8fa08545f4c5c (patch)
tree6a86be18c0524b4b57b5ec9bb3aadfffeebbcb2b /src/backend/parser/parse_expr.c
parent598b466e80d9f46aa1472d4f1adb1df90be8c260 (diff)
downloadpostgresql-ce054a8cd4f4faf3479050feb5d8fa08545f4c5c.tar.gz
postgresql-ce054a8cd4f4faf3479050feb5d8fa08545f4c5c.zip
Fix TRUNCATE .. CASCADE on partitions
When running TRUNCATE CASCADE on a child of a partitioned table referenced by another partitioned table, the truncate was not applied to partitions of the referencing table; this could leave rows violating the constraint in the referencing partitioned table. Repair by walking the pg_constraint chain all the way up to the topmost referencing table. Note: any partitioned tables containing FKs that reference other partitioned tables should be checked for possible violating rows, if TRUNCATE has occurred in partitions of the referenced table. Reported-by: Christophe Courtois Author: Jehan-Guillaume de Rorthais Discussion: https://postgr.es/m/20200204183906.115f693e@firost
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions