aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/misc.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2018-04-06 11:42:28 -0400
committerRobert Haas <rhaas@postgresql.org>2018-04-06 11:42:28 -0400
commitcfbecf8100ecb83c07c2017f843b0642580416bf (patch)
tree3c4f6a571524d298876103fcd0a3bf0deebfaee0 /src/backend/utils/adt/misc.c
parent870d89608e5f891275d0b752560c827dbce3d7b4 (diff)
downloadpostgresql-cfbecf8100ecb83c07c2017f843b0642580416bf.tar.gz
postgresql-cfbecf8100ecb83c07c2017f843b0642580416bf.zip
Enforce child constraints during COPY TO a partitioned table.
The previous coding inadvertently checked the constraints for the partitioned table rather than the target partition, which could lead to data in a partition that fails to satisfy some constraint on that partition. This problem seems to date back to when table partitioning was introduced; prior to that, there was only one target table for a COPY, so the problem didn't occur, and the code just didn't get updated. Etsuro Fujita, reviewed by Amit Langote and Ashutosh Bapat Discussion: https://postgr.es/message-id/5ABA4074.1090500%40lab.ntt.co.jp
Diffstat (limited to 'src/backend/utils/adt/misc.c')
0 files changed, 0 insertions, 0 deletions