Re: Does Type Have = Operator?

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "David E(dot) Wheeler" <david(at)justatheory(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Does Type Have = Operator?
Date: 2016-05-11 04:11:40
Message-ID: e237af07-7efa-c0d7-8d82-2d05e2812e47@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/10/16 9:16 PM, David G. Johnston wrote:
> Brute force: you'd have to query pg_amop and note the absence of a row
> with a btree (maybe hash too...) family strategy 3 (1 for hash)
> [equality] where the left and right types are the same and match the
> type in question.

While these are good thoughts, the implementation of DISTINCT actually
looks for an operator that is literally named "=".

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2016-05-11 04:25:26 Re: Stopping logical replication protocol
Previous Message Robins Tharakan 2016-05-11 03:36:07 Re: Accurate list of Keywords / Datatypes?