pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 13:23:45 -0500
Message-ID: <3877235.1614104625@sss.pgh.pa.us> (raw)
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>

Ayo <ayo@blicky.net> writes:
> Aaah! That was it, I had totally missed the HASHES and MERGES options to
> CREATE OPERATOR. It works perfectly now that I set those.

Cool.

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

No, they just flag that the operator is equality in some hash or btree
(respectively) opclass.

			regards, tom lane





view thread (8+ messages)

Message-ID: <3877235.1614104625@sss.pgh.pa.us>
Permalink:  ../3877235.1614104625@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3877235.1614104625@sss.pgh.pa.us

 · 

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