- Notifications
You must be signed in to change notification settings - Fork28
Commit6b0208e
committed
Fix partition tuple routing with dropped attributes
When trying to insert a tuple into a partitioned table, the routing tothe correct partition has been messed up by mixing when a tuple needs tobe stored in an intermediate parent's slot and when a tuple needs to beconverted because of attribute changes between the immediate parentrelation and the parent relation one level above that (the grandparent).This could trigger errors like the following:ERROR: cannot extract attribute from empty tuple slot SQL state: XX000This was not detected because regression tests with dropped attributesonly included tests with two levels of partitioning, and this can betriggered with three levels or more.This fixes bug #15733, which has been introduced by34295b8. The bughappens only on REL_11_STABLE and HEAD gains the regression tests addedfor this bug.Reported-by: Petr FedorovAuthor: Amit Langote, Michael PaquierDiscussion:https://postgr.es/m/15733-7692379e310b80ec@postgresql.org1 parenta7ca25c commit6b0208e
File tree
3 files changed
+93
-15
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+93
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
258 | 259 | | |
259 | | - | |
260 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
261 | 268 | | |
262 | | - | |
| 269 | + | |
| 270 | + | |
263 | 271 | | |
264 | | - | |
265 | 272 | | |
| 273 | + | |
| 274 | + | |
266 | 275 | | |
267 | 276 | | |
268 | 277 | | |
| |||
272 | 281 | | |
273 | 282 | | |
274 | 283 | | |
275 | | - | |
276 | | - | |
| 284 | + | |
| 285 | + | |
277 | 286 | | |
278 | 287 | | |
279 | 288 | | |
| |||
309 | 318 | | |
310 | 319 | | |
311 | 320 | | |
312 | | - | |
313 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
314 | 325 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 326 | + | |
| 327 | + | |
318 | 328 | | |
319 | | - | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
324 | | - | |
| 333 | + | |
325 | 334 | | |
326 | 335 | | |
327 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
632 | 673 | | |
633 | 674 | | |
634 | 675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
404 | 432 | | |
405 | 433 | | |
406 | 434 | | |
| |||
0 commit comments
Comments
(0)