Re: Is select_outer_pathkeys_for_merge() too strict now we have Incremental Sorts? - Mailing list pgsql-hackers

From David Rowley
Subject Re: Is select_outer_pathkeys_for_merge() too strict now we have Incremental Sorts?
Date
Msg-id CAApHDvoEHWccFO73O-t6Htpa=UKzwVKTWNxPozb8dOzuLU93PA@mail.gmail.com
Whole thread Raw
In response to Re: Is select_outer_pathkeys_for_merge() too strict now we have Incremental Sorts?  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
On Thu, 21 Jul 2022 at 14:23, Richard Guo <guofenglinux@gmail.com> wrote:
>
> On Thu, Jul 21, 2022 at 3:47 AM David Rowley <dgrowleyml@gmail.com> wrote:
>> Maybe your idea could be made to work in cases where
>> bms_equal(joinrel->relids, root->all_baserels). In that case, we
>> should not be processing any further joins and don't need to consider
>> that as a factor for the scoring.
>
>
> That should work, as long as this case is common enough to worth we
> writing the codes.

Thanks for looking at this patch. I've now pushed it.

David



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [Commitfest 2022-07] is Done!
Next
From: Jacob Champion
Date:
Subject: Re: [Commitfest 2022-07] is Done!