aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-11-07 13:59:24 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-11-07 13:59:24 -0300
commitb4bcc6bfdfa2b564b0171d437f9988a3159fd58d (patch)
treec4879174b77ae8a1f5f4102279e50867ddeea9e2 /src/backend/access/gist/gistbuild.c
parenta7145f6bc8b7774a29f3841552a463fb20ea98d7 (diff)
downloadpostgresql-b4bcc6bfdfa2b564b0171d437f9988a3159fd58d.tar.gz
postgresql-b4bcc6bfdfa2b564b0171d437f9988a3159fd58d.zip
Fix SET CONSTRAINTS .. DEFERRED on partitioned tables
SET CONSTRAINTS ... DEFERRED failed on partitioned tables, because of a sanity check that ensures that the affected constraints have triggers. On partitioned tables, the triggers are in the leaf partitions, not in the partitioned relations themselves, so the sanity check fails. Removing the sanity check solves the problem, because the code needed to support the case is already there. Backpatch to 11. Note: deferred unique constraints are not affected by this bug, because they do have triggers in the parent partitioned table. I did not add a test for this scenario. Discussion: https://postgr.es/m/20191105212915.GA11324@alvherre.pgsql
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions