forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdd2364c
committed
Fix bogus logic for reporting which hash partition conflicts.
Commitefbfb64 added logic for reporting exactly which existingpartition conflicts when complaining that a new hash partition'smodulus isn't compatible with the existing ones. However, itmisunderstood the partitioning data structure, and would selectthe wrong partition in some cases, or crash outright due to fetchinga bogus table OID in other cases.Per bug #17076 from Alexander Lakhin. Fix by Amit Langote;some further work on the code comments by me.Discussion:https://postgr.es/m/17076-89a16ae835d329b9@postgresql.org1 parentdc227eb commitdd2364c
File tree
3 files changed
+29
-10
lines changed- src
- backend/partitioning
- test/regress
- expected
- sql
3 files changed
+29
-10
lines changedLines changed: 18 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2838 | 2838 |
| |
2839 | 2839 |
| |
2840 | 2840 |
| |
2841 |
| - | |
| 2841 | + | |
2842 | 2842 |
| |
2843 | 2843 |
| |
2844 | 2844 |
| |
2845 | 2845 |
| |
2846 |
| - | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
2847 | 2850 |
| |
2848 | 2851 |
| |
2849 | 2852 |
| |
| |||
2870 | 2873 |
| |
2871 | 2874 |
| |
2872 | 2875 |
| |
2873 |
| - | |
| 2876 | + | |
2874 | 2877 |
| |
2875 | 2878 |
| |
2876 | 2879 |
| |
2877 | 2880 |
| |
2878 | 2881 |
| |
2879 | 2882 |
| |
2880 |
| - | |
2881 |
| - | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
2882 | 2886 |
| |
2883 | 2887 |
| |
2884 | 2888 |
| |
| |||
2889 | 2893 |
| |
2890 | 2894 |
| |
2891 | 2895 |
| |
2892 |
| - | |
| 2896 | + | |
2893 | 2897 |
| |
2894 | 2898 |
| |
2895 | 2899 |
| |
2896 | 2900 |
| |
2897 | 2901 |
| |
2898 |
| - | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
2899 | 2909 |
| |
2900 | 2910 |
| |
2901 | 2911 |
| |
| |||
2904 | 2914 |
| |
2905 | 2915 |
| |
2906 | 2916 |
| |
2907 |
| - | |
| 2917 | + | |
2908 | 2918 |
| |
2909 | 2919 |
| |
2910 | 2920 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
780 | 780 |
| |
781 | 781 |
| |
782 | 782 |
| |
| 783 | + | |
783 | 784 |
| |
784 | 785 |
| |
785 | 786 |
| |
786 |
| - | |
| 787 | + | |
787 | 788 |
| |
788 | 789 |
| |
789 | 790 |
| |
790 | 791 |
| |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
791 | 797 |
| |
792 | 798 |
| |
793 | 799 |
| |
| |||
1100 | 1106 |
| |
1101 | 1107 |
| |
1102 | 1108 |
| |
1103 |
| - | |
| 1109 | + | |
1104 | 1110 |
| |
1105 | 1111 |
| |
1106 | 1112 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
| 634 | + | |
634 | 635 |
| |
635 | 636 |
| |
636 | 637 |
| |
637 | 638 |
| |
| 639 | + | |
| 640 | + | |
638 | 641 |
| |
639 | 642 |
| |
640 | 643 |
| |
|
0 commit comments
Comments
(0)