forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcfbecf8
committed
Enforce child constraints during COPY TO a partitioned table.
The previous coding inadvertently checked the constraints for thepartitioned table rather than the target partition, which couldlead to data in a partition that fails to satisfy some constrainton that partition. This problem seems to date back to whentable partitioning was introduced; prior to that, there was onlyone target table for a COPY, so the problem didn't occur, and thecode just didn't get updated.Etsuro Fujita, reviewed by Amit Langote and Ashutosh BapatDiscussion:https://postgr.es/message-id/5ABA4074.1090500%40lab.ntt.co.jp1 parent870d896 commitcfbecf8
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2709 | 2709 |
| |
2710 | 2710 |
| |
2711 | 2711 |
| |
2712 |
| - | |
| 2712 | + | |
| 2713 | + | |
2713 | 2714 |
| |
2714 | 2715 |
| |
2715 | 2716 |
| |
|
0 commit comments
Comments
(0)