pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ayo <ayo@blicky.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Custom base type and suboptimal query plans
Date: Tue, 23 Feb 2021 19:07:03 +0100
Message-ID: <YDVER+8k3QXdNRyK@gmai021> (raw)
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>

On 2021-02-23, Tom Lane wrote:
> Hmm ... did you remember to set the oprcanhash property on the equality
> operator?

Aaah! That was it, I had totally missed the HASHES and MERGES options to
CREATE OPERATOR. It works perfectly now that I set those.

Do those options make sense for other operators besides equality, too?

Many thanks for the help.





view thread (8+ messages)  latest in thread

Message-ID: <YDVER+8k3QXdNRyK@gmai021>
Permalink:  ../YDVER+8k3QXdNRyK@gmai021/
Also on:    postgresql.org/message-id/YDVER+8k3QXdNRyK@gmai021

 · 

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 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: ayo@blicky.net, tgl@sss.pgh.pa.us
  Subject: Re: Custom base type and suboptimal query plans
  In-Reply-To: <YDVER+8k3QXdNRyK@gmai021>
  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> <YDVER+8k3QXdNRyK@gmai021>

* 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