forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit18661c6
committed
Don't trust deferred-unique indexes for join removal.
The uniqueness condition might fail to hold intra-transaction, and assumingit does can give incorrect query results. Per report from Marti Raudsepp,though this is not his proposed patch.Back-patch to 9.0, where both these features were introduced. In thereleased branches, add the new IndexOptInfo field to the end of the struct,to try to minimize ABI breakage for third-party code that may be examiningthat struct.1 parent8e8ac08 commit18661c6
File tree
5 files changed
+17
-4
lines changed- src
- backend
- nodes
- optimizer
- path
- util
- utils/adt
- include/nodes
5 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1764 | 1764 | | |
1765 | 1765 | | |
1766 | 1766 | | |
| 1767 | + | |
1767 | 1768 | | |
1768 | 1769 | | |
1769 | 1770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2179 | 2179 | | |
2180 | 2180 | | |
2181 | 2181 | | |
2182 | | - | |
2183 | | - | |
| 2182 | + | |
| 2183 | + | |
2184 | 2184 | | |
2185 | | - | |
| 2185 | + | |
| 2186 | + | |
2186 | 2187 | | |
2187 | 2188 | | |
2188 | 2189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
973 | 974 | | |
974 | 975 | | |
975 | 976 | | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
976 | 982 | | |
977 | 983 | | |
978 | 984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4121 | 4121 | | |
4122 | 4122 | | |
4123 | 4123 | | |
4124 | | - | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
4125 | 4127 | | |
4126 | 4128 | | |
4127 | 4129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
494 | 497 | | |
495 | 498 | | |
496 | 499 | | |
| |||
0 commit comments
Comments
(0)