forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit559ec79
committed
Small cleanup of create_list_bounds()
When checking for interleaved partitions, we mark the partition asinterleaved when;1. we find an earlier partition index when looping over thesorted-by-Datum indexes[] array, or;2. we find that the NULL partition allows some non-NULL Datum value.In the code, as it was written indb632fb we'll continue to check forcase 2 when we've already marked the partition as interleaved for case 1.Here we make it so we don't bother marking the partition as interleavedfor case 2 when it's already been marked due to case 1.Really all this saves is a useless call to bms_add_member(), but sincethis code is new to PG15, it seems worth fixing it now to save anyone thetrouble of complaining at some time in the future. We have theopportunity to improve this now before PG15 is out. This might ease somefuture back-patching pain.Per report and patch by Zhihong Yu. However, I slightly revised thecomments and altered the bms_add_member() code to match in both locations.We already know that index is equal to boundinfo->null_index from the ifcondition.Author: Zhihong YuDiscussion:https://postgr.es/m/CALNJ-vQbZR0pYxz9zQ5bqXVcwtGgNgVupeEpNT65HZ+yWZnc4g@mail.gmail.comBackpatch-through: 15, same asdb632fb.1 parent44b5d56 commit559ec79
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
648 | 648 |
| |
649 | 649 |
| |
650 | 650 |
| |
651 |
| - | |
652 |
| - | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
653 | 654 |
| |
654 |
| - | |
655 |
| - | |
| 655 | + | |
| 656 | + | |
656 | 657 |
| |
657 |
| - | |
| 658 | + | |
658 | 659 |
| |
659 | 660 |
| |
660 | 661 |
| |
|
0 commit comments
Comments
(0)