From: Peter Eisentraut <peter@eisentraut.org>
To: Melanie Plageman <melanieplageman@gmail.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Change gist stratnum function to use CompareType
Date: Wed, 15 Jan 2025 23:14:51 +0100
Message-ID: <fdbbb468-2f8d-41af-96d0-daa9ac928fd2@eisentraut.org> (raw)
In-Reply-To: <CAAKRu_bbYbxnv4-gc0cJ29S6wwfxff-0MMueN1e0yTMT+Aam4g@mail.gmail.com>
References: <E1tY0qC-001hzx-Gi@gemulon.postgresql.org>
<CAAKRu_bbYbxnv4-gc0cJ29S6wwfxff-0MMueN1e0yTMT+Aam4g@mail.gmail.com>
On 15.01.25 22:36, Melanie Plageman wrote:
> On Wed, Jan 15, 2025 at 5:41 AM Peter Eisentraut <peter@eisentraut.org> wrote:
>>
>> Change gist stratnum function to use CompareType
>>
>> This changes commit 7406ab623fe in that the gist strategy number
>> mapping support function is changed to use the CompareType enum as
>> input, instead of the "well-known" RT*StrategyNumber strategy numbers.
>>
>> This is a bit cleaner, since you are not dealing with two sets of
>> strategy numbers. Also, this will enable us to subsume this system
>> into a more general system of using CompareType to define operator
>> semantics across index methods.
>
> This appears to fail the headers_cpluspluscheck job in CI [1] with
>
> /tmp/cirrus-ci-build/src/include/access/gist.h:251:63: error: use of
> enum ‘CompareType’ without previous declaration
> 251 | extern StrategyNumber GistTranslateStratnum(Oid opclass, enum
> CompareType cmp);
Fixed, thanks.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Change gist stratnum function to use CompareType
In-Reply-To: <fdbbb468-2f8d-41af-96d0-daa9ac928fd2@eisentraut.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox