Re: Index AM API cleanup

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Index AM API cleanup
Date: 2025-04-01 12:50:55
Message-ID: f0feec67-31ea-4124-9139-d16abc98ee50@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 20.03.25 12:59, Peter Eisentraut wrote:
> v22-0006-Convert-from-StrategyNumber-to-CompareType.patch
>
> This is all that remains now.  I think with a bit more polishing around
> the edges, some comment updates, etc., this is close to ready.

Here is an updated version of this patch. I have left out all the extra
tests and WIP patches etc. from the series for now so that the focus is
clear.

This patch is mostly unchanged from the above, except some small amount
of updating comments, as well as the following.

I've done a fair bit of performance testing to make sure there are no
noticeable regressions from this patch. I've found that the function
get_mergejoin_opfamilies() is quite critical to the planning time of
even simple queries (such as pgbench --select-only), so I played around
with various caching schemes. In the end, I just settled on hardcoding
information about the built-in index AM types. Which is of course ugly,
but at least it's essentially the same as before. If we find other
affected hotspots, we could apply similar workarounds, but so far I
haven't found any.

Attachment Content-Type Size
v23-0001-Convert-from-StrategyNumber-to-CompareType.patch text/plain 67.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2025-04-01 13:03:25 Re: pgsql: Add support for OAUTHBEARER SASL mechanism
Previous Message Nazir Bilal Yavuz 2025-04-01 12:50:32 Re: Using read stream in autoprewarm