public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ronan Dunklau <[email protected]>
To: Tom Lane <[email protected]>
To: [email protected]
To: Paul Jungwirth <[email protected]>
Cc: Pgsql Hackers <[email protected]>
Subject: Re: Exclusion constraints on partitioned tables
Date: Mon, 20 Mar 2023 09:24:59 +0100
Message-ID: <4467897.LvFx2qVVIh@aivenlaptop> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<10212835.nUPlyArG6x@aivenlaptop>
<[email protected]>
Le vendredi 17 mars 2023, 17:03:09 CET Paul Jungwirth a écrit :
> I added the code about RTEqualStrategyNumber because that's what we need
> to find an equals operator when the index is GiST (except if it's using
> an opclass from btree_gist; then it needs to be BTEqual again). But then
> I realized that for exclusion constraints we have already figured out
> the operator (in RelationGetExclusionInfo) and put it in
> indexInfo->ii_ExclusionOps. So we can just compare against that. This
> works whether your index uses btree_gist or not.
>
> Here is an updated patch with that change (also rebased).
Thanks ! This looks fine to me like this.
>
> I also included a more specific error message. If we find a matching
> column in the index but with the wrong operator, we should say so, and
> not say there is no matching column.
>
I agree that's a nicer improvement.
Regards,
--
Ronan Dunklau
view thread (2+ messages)
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Exclusion constraints on partitioned tables
In-Reply-To: <4467897.LvFx2qVVIh@aivenlaptop>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox