- Notifications
You must be signed in to change notification settings - Fork5
Commit3f6f926
committed
Fix bogus variable-mangling in security_barrier_replace_vars().
This function created new Vars with varno different from varnoold, whichis a condition that should never prevail before setrefs.c does the finalvariable-renumbering pass. The created Vars could not be seen as equal()to normal Vars, which among other things broke equivalence-class processingfor them. The consequences of this were indeed visible in the regressiontests, in the form of failure to propagate constants as one would expect.I stumbled across it while poking at bug #11457 --- after intentionallydisabling join equivalence processing, the security-barrier regressiontests started falling over with fun errors like "could not find pathkeyitem to sort", because of failure to match the corrupted Vars to normalones.1 parentb1a5287 commit3f6f926
File tree
2 files changed
+17
-17
lines changed- src
- backend/optimizer/prep
- test/regress/expected
2 files changed
+17
-17
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
435 |
| - | |
| 435 | + | |
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
|
Lines changed: 16 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2071 | 2071 |
| |
2072 | 2072 |
| |
2073 | 2073 |
| |
2074 |
| - | |
| 2074 | + | |
2075 | 2075 |
| |
2076 | 2076 |
| |
2077 |
| - | |
| 2077 | + | |
2078 | 2078 |
| |
2079 | 2079 |
| |
2080 | 2080 |
| |
| |||
2086 | 2086 |
| |
2087 | 2087 |
| |
2088 | 2088 |
| |
2089 |
| - | |
| 2089 | + | |
2090 | 2090 |
| |
2091 | 2091 |
| |
2092 |
| - | |
| 2092 | + | |
2093 | 2093 |
| |
2094 | 2094 |
| |
2095 | 2095 |
| |
| |||
2101 | 2101 |
| |
2102 | 2102 |
| |
2103 | 2103 |
| |
2104 |
| - | |
| 2104 | + | |
2105 | 2105 |
| |
2106 | 2106 |
| |
2107 |
| - | |
| 2107 | + | |
2108 | 2108 |
| |
2109 | 2109 |
| |
2110 | 2110 |
| |
| |||
2116 | 2116 |
| |
2117 | 2117 |
| |
2118 | 2118 |
| |
2119 |
| - | |
| 2119 | + | |
2120 | 2120 |
| |
2121 | 2121 |
| |
2122 |
| - | |
| 2122 | + | |
2123 | 2123 |
| |
2124 | 2124 |
| |
2125 | 2125 |
| |
| |||
2149 | 2149 |
| |
2150 | 2150 |
| |
2151 | 2151 |
| |
2152 |
| - | |
| 2152 | + | |
2153 | 2153 |
| |
2154 | 2154 |
| |
2155 |
| - | |
| 2155 | + | |
2156 | 2156 |
| |
2157 | 2157 |
| |
2158 | 2158 |
| |
| |||
2164 | 2164 |
| |
2165 | 2165 |
| |
2166 | 2166 |
| |
2167 |
| - | |
| 2167 | + | |
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 |
| - | |
| 2170 | + | |
2171 | 2171 |
| |
2172 | 2172 |
| |
2173 | 2173 |
| |
| |||
2179 | 2179 |
| |
2180 | 2180 |
| |
2181 | 2181 |
| |
2182 |
| - | |
| 2182 | + | |
2183 | 2183 |
| |
2184 | 2184 |
| |
2185 |
| - | |
| 2185 | + | |
2186 | 2186 |
| |
2187 | 2187 |
| |
2188 | 2188 |
| |
| |||
2194 | 2194 |
| |
2195 | 2195 |
| |
2196 | 2196 |
| |
2197 |
| - | |
| 2197 | + | |
2198 | 2198 |
| |
2199 | 2199 |
| |
2200 |
| - | |
| 2200 | + | |
2201 | 2201 |
| |
2202 | 2202 |
| |
2203 | 2203 |
| |
|
0 commit comments
Comments
(0)