From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ayo <ayo@blicky.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Custom base type and suboptimal query plans
Date: Tue, 23 Feb 2021 12:47:50 -0500
Message-ID: <3875364.1614102470@sss.pgh.pa.us> (raw)
In-Reply-To: <YDU+yVKlkPCW4X9p@gmai021>
References: <YDUIvp3QiXjjHPkz@gmai021>
<3822526.1614093860@sss.pgh.pa.us>
<YDUow/TOMox1g9TU@gmai021>
<3873892.1614100834@sss.pgh.pa.us>
<YDU+yVKlkPCW4X9p@gmai021>
Ayo <ayo@blicky.net> writes:
> No luck. It uses the index now, but seemingly only to loop over it. The
> integer version uses a HashAggregate, I must have missed something in my
> implementation to make the planner avoid that node. Does it have any special
> type requirements, other than the hash operator class?
Hmm ... did you remember to set the oprcanhash property on the equality
operator?
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ayo@blicky.net
Subject: Re: Custom base type and suboptimal query plans
In-Reply-To: <3875364.1614102470@sss.pgh.pa.us>
References: <YDUIvp3QiXjjHPkz@gmai021> <3822526.1614093860@sss.pgh.pa.us> <YDUow/TOMox1g9TU@gmai021> <3873892.1614100834@sss.pgh.pa.us> <YDU+yVKlkPCW4X9p@gmai021> <3875364.1614102470@sss.pgh.pa.us>
* 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