Re: Index AM API cleanup - Mailing list pgsql-hackers

From Mark Dilger
Subject Re: Index AM API cleanup
Date
Msg-id FFE537D5-9C13-40EE-81AD-4116CD94355F@enterprisedb.com
Whole thread Raw
In response to Re: Index AM API cleanup  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers

> On Sep 24, 2024, at 10:50 AM, Peter Eisentraut <peter@eisentraut.org> wrote:
>
> Next, I have reviewed patches
>
> v17-0010-Track-sort-direction-in-SortGroupClause.patch
> v17-0011-Track-scan-reversals-in-MergeJoin.patch
>
> Both of these seem ok and sensible to me.
>
> They take the concept of the "reverse" flag that already exists in the affected code and just apply it more
consistentlythroughout the various code layers, instead of relying on strategy numbers as intermediate storage.  This
isboth helpful for your ultimate goal in this patch series, and it also makes the affected code areas simpler and more
consistentand robust. 
>

Thanks for the review!

Yes, I found the existing use of a btree strategy number rather than a boolean "reverse" flag made using the code from
otherindex AMs needlessly harder.  I am glad you see it the same way. 

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company






pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Index AM API cleanup
Next
From: Aleksander Alekseev
Date:
Subject: Re: [PATCH] Support Int64 GUCs