forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit29ab1e2
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 parentc00c4c5 commit29ab1e2
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2744 | 2744 |
| |
2745 | 2745 |
| |
2746 | 2746 |
| |
2747 |
| - | |
| 2747 | + | |
| 2748 | + | |
2748 | 2749 |
| |
2749 | 2750 |
| |
2750 | 2751 |
| |
|
0 commit comments
Comments
(0)