forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit37c443e
committed
Fix compare_fuzzy_path_costs() to behave a bit more sanely. The original
coding would ignore startup cost differences of less than 1% of theestimated total cost; which was OK for normal planning but highly not OKif a very small LIMIT was applied afterwards, so that startup cost becomesthe name of the game. Instead, compare startup and total costs fuzzilybut independently. This changes the plan selected for two queries in theregression tests; adjust expected-output files for resulting changes inrow order. Per reports from Dawid Kuroczko and Sam Mason.1 parent3758aff commit37c443e
File tree
6 files changed
+1506
-1525
lines changed- src
- backend/optimizer/util
- test/regress/expected
6 files changed
+1506
-1525
lines changedLines changed: 18 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
102 |
| - | |
103 | 101 |
| |
104 |
| - | |
105 |
| - | |
106 |
| - | |
| 102 | + | |
107 | 103 |
| |
108 | 104 |
| |
109 | 105 |
| |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 | 106 |
| |
114 | 107 |
| |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
122 | 112 |
| |
123 | 113 |
| |
124 | 114 |
| |
125 | 115 |
| |
126 | 116 |
| |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
134 | 121 |
| |
135 | 122 |
| |
136 | 123 |
| |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
144 | 128 |
| |
145 | 129 |
| |
146 | 130 |
| |
147 | 131 |
| |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
155 | 136 |
| |
156 | 137 |
| |
157 | 138 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 | 261 |
| |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 | 262 |
| |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 | 263 |
| |
| 264 | + | |
| 265 | + | |
| 266 | + | |
276 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
277 | 271 |
| |
| 272 | + | |
| 273 | + | |
| 274 | + | |
278 | 275 |
| |
| 276 | + | |
| 277 | + | |
| 278 | + | |
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 | 261 |
| |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 | 262 |
| |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 | 263 |
| |
| 264 | + | |
| 265 | + | |
| 266 | + | |
276 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
277 | 271 |
| |
| 272 | + | |
| 273 | + | |
| 274 | + | |
278 | 275 |
| |
| 276 | + | |
| 277 | + | |
| 278 | + | |
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 | 261 |
| |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 | 262 |
| |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 | 263 |
| |
| 264 | + | |
| 265 | + | |
| 266 | + | |
276 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
277 | 271 |
| |
| 272 | + | |
| 273 | + | |
| 274 | + | |
278 | 275 |
| |
| 276 | + | |
| 277 | + | |
| 278 | + | |
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
|
0 commit comments
Comments
(0)