- Notifications
You must be signed in to change notification settings - Fork28
Commitf052307
committed
Revert "Allow ON CONFLICT .. DO NOTHING on a partitioned table."
This reverts commit8355a01, whichturns out to have been a misguided effort. We can't really supportthis in a partitioning hierarchy after all for exactly the reasonsstated in the documentation removed by that commit. It's stillpossible to use ON CONFLICT .. DO NOTHING (or for that matter ONCONFLICT .. DO UPDATE) on individual partitions if desired, butbut to allow this on a partitioned table implies that we have someway of evaluating uniqueness across the whole partitioninghierarchy, which is false.Shinoda Noriyoshi noticed that the old code was crashing (which wecould fix, though not in a nice way) and Amit Langote realizedthat this was indicative of a fundamental problem with the commitbeing reverted here.Discussion:http://postgr.es/m/ff3dc21d-7204-c09c-50ac-cf11a8c45c81@lab.ntt.co.jp1 parentc94e694 commitf052307
File tree
4 files changed
+10
-26
lines changed- doc/src/sgml
- src
- backend/parser
- test/regress
- expected
- sql
4 files changed
+10
-26
lines changedLines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3854 | 3854 |
| |
3855 | 3855 |
| |
3856 | 3856 |
| |
3857 |
| - | |
3858 |
| - | |
3859 |
| - | |
3860 |
| - | |
3861 |
| - | |
3862 |
| - | |
| 3857 | + | |
| 3858 | + | |
3863 | 3859 |
| |
3864 | 3860 |
| |
3865 | 3861 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
845 | 852 |
| |
846 | 853 |
| |
| 854 | + | |
847 | 855 |
| |
848 | 856 |
| |
849 | 857 |
| |
|
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
786 | 786 |
| |
787 | 787 |
| |
788 | 788 |
| |
789 |
| - | |
790 |
| - | |
791 |
| - | |
792 |
| - | |
793 |
| - | |
794 |
| - | |
795 |
| - | |
796 |
| - | |
797 |
| - | |
798 |
| - |
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
471 | 471 |
| |
472 | 472 |
| |
473 | 473 |
| |
474 |
| - | |
475 |
| - | |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
482 |
| - | |
483 |
| - |
0 commit comments
Comments
(0)