forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit475cb15
committed
Squash some more CLUSTER bugs. Never has worked on multiple-column
indexes, apparently, nor on functional indexes with more than one inputcolumn (force of natts = 1 was in the wrong branch of IF statement).Coredumped if source relation contained any uncommitted tuples, due tofailure to test for success return from heap_fetch. Fetched tuplewas passed directly to heap_insert, which clobbers the TID and commitstatus in the tuple header it's given, which meant that the sourcerelation's tuples all got trashed as the copy proceeded. Abort partwaythrough, and you're left with a lot of missing tuples.I wonder what else is lurking here ...1 parentbe4ae8f commit475cb15
1 file changed
+18
-5
lines changedLines changed: 18 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
| 261 | + | |
261 | 262 |
| |
262 | 263 |
| |
263 | 264 |
| |
264 | 265 |
| |
265 |
| - | |
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
276 |
| - | |
| 276 | + | |
| 277 | + | |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
| |||
313 | 314 |
| |
314 | 315 |
| |
315 | 316 |
| |
316 |
| - | |
317 |
| - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
318 | 331 |
| |
319 | 332 |
| |
320 | 333 |
| |
|
0 commit comments
Comments
(0)