forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c7cf08
committed
Test, don't just Assert, that mergejoin's inputs are in order.
There are two Asserts in nodeMergejoin.c that are reachable ifthe input data is not in the expected order. This seems way toofragile. Alexander Lakhin reported a case where the assertionscould be triggered with misconfigured foreign-table partitions,and bitter experience with unstable operating system collationdefinitions suggests another easy route to hitting them. NeitherAssert is in a place where we can't afford one more test-and-branch,so replace 'em with plain test-and-elog logic.Per bug #17395. While the reported symptom is relatively recent,collation changes could happen anytime, so back-patch to allsupported branches.Discussion:https://postgr.es/m/17395-8c326292078d1a57@postgresql.org1 parent58e9d28 commit9c7cf08
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
893 | 893 |
| |
894 | 894 |
| |
895 | 895 |
| |
896 |
| - | |
897 |
| - | |
898 |
| - | |
| 896 | + | |
899 | 897 |
| |
900 |
| - | |
| 898 | + | |
| 899 | + | |
901 | 900 |
| |
902 | 901 |
| |
903 | 902 |
| |
| |||
1087 | 1086 |
| |
1088 | 1087 |
| |
1089 | 1088 |
| |
1090 |
| - | |
| 1089 | + | |
1091 | 1090 |
| |
1092 | 1091 |
| |
1093 | 1092 |
| |
| |||
1106 | 1105 |
| |
1107 | 1106 |
| |
1108 | 1107 |
| |
1109 |
| - | |
1110 | 1108 |
| |
1111 | 1109 |
| |
1112 | 1110 |
| |
| |||
1140 | 1138 |
| |
1141 | 1139 |
| |
1142 | 1140 |
| |
| 1141 | + | |
| 1142 | + | |
1143 | 1143 |
| |
1144 | 1144 |
| |
1145 | 1145 |
| |
|
0 commit comments
Comments
(0)