pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: PegoraroF10 <marcos@f10.com.br>
Cc: pgsql-general@postgresql.org
Subject: Re: Operator is not unique
Date: Mon, 30 Sep 2019 10:54:15 -0400
Message-ID: <26283.1569855255@sss.pgh.pa.us> (raw)
In-Reply-To: <257b0805-ed19-6f64-ece8-112ae936dbff@aklaver.com>
References: <1569334695687-0.post@n3.nabble.com>
	<4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com>
	<1569418730413-0.post@n3.nabble.com>
	<0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com>
	<1569442463636-0.post@n3.nabble.com>
	<f3480478-6387-f5aa-6998-e6bf737af280@aklaver.com>
	<1569620660615-0.post@n3.nabble.com>
	<c73a31e0-3144-d9e6-d2d9-8cfaccd68c4b@aklaver.com>
	<1569847690540-0.post@n3.nabble.com>
	<5f015007-4343-bf46-621a-e707b8206f5f@aklaver.com>
	<1569853731245-0.post@n3.nabble.com>
	<257b0805-ed19-6f64-ece8-112ae936dbff@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> The list of extensions that you sent earlier are fairly common. I would 
> not expect them to be contributing to the below otherwise there would 
> have been more reports of what you are seeing.

A quick "grep" shows that there is nothing named "day_inc" in core
Postgres nor any of the contrib extensions.  So this is something
homegrown.  It looks to me like somebody wanted a plus operator
that would add numerics and dates/timestamps/timestamptzs, and
figured they could be lazy and make one operator using "anyelement".
But this will capture numeric plus *anything*, so it was not a
good idea.  I'd recommend dropping the use of anyelement and just
making three non-polymorphic operators.

			regards, tom lane





view thread (21+ messages)

Message-ID: <26283.1569855255@sss.pgh.pa.us>
Permalink:  ../26283.1569855255@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26283.1569855255@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, adrian.klaver@aklaver.com, marcos@f10.com.br
  Subject: Re: Operator is not unique
  In-Reply-To: <26283.1569855255@sss.pgh.pa.us>
  References: <1569334695687-0.post@n3.nabble.com> <4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com> <1569418730413-0.post@n3.nabble.com> <0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com> <1569442463636-0.post@n3.nabble.com> <f3480478-6387-f5aa-6998-e6bf737af280@aklaver.com> <1569620660615-0.post@n3.nabble.com> <c73a31e0-3144-d9e6-d2d9-8cfaccd68c4b@aklaver.com> <1569847690540-0.post@n3.nabble.com> <5f015007-4343-bf46-621a-e707b8206f5f@aklaver.com> <1569853731245-0.post@n3.nabble.com> <257b0805-ed19-6f64-ece8-112ae936dbff@aklaver.com> <26283.1569855255@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