pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: Operator is not unique
Date: Wed, 25 Sep 2019 12:50:33 -0700
Message-ID: <0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com> (raw)
In-Reply-To: <1569418730413-0.post@n3.nabble.com>
References: <1569332101700-0.post@n3.nabble.com>
	<CAPfkCSBb6_18z9snrVA=U5Oa3NzZ3QKDzFq+FL8_ygEk2W+6uA@mail.gmail.com>
	<1569333109982-0.post@n3.nabble.com>
	<CAPfkCSBaEOcfEOVvDYQVu8CBhvD2AahV+aUk=rBC-0UTt5yo1A@mail.gmail.com>
	<1569334695687-0.post@n3.nabble.com>
	<4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com>
	<1569418730413-0.post@n3.nabble.com>

On 9/25/19 6:38 AM, PegoraroF10 wrote:
> Doing a inner join with pg_proc I´ll get this result. So, none of this 
> casts I´ve created. Column prorettype is different, this is the problem 
> ? select format_type(castsource, NULL), format_type(casttarget, NULL), 
> castfunc, castcontext, castmethod, pr.* from pg_cast inner join pg_proc 
> pr on castfunc = pr.oid where (castsource = 'numeric'::regtype or 
> castsource = 'bigint'::regtype) and format_type(casttarget, NULL) in 
> ('numeric','bigint') order by castsource;

Please run the query provided:

select format_type(castsource, NULL), format_type(casttarget, NULL), 
castfunc, castcontext, castmethod  from pg_cast  where castsource = 
'numeric'::regtype or castsource = 'bigint'::regtype order by castsource;


> format_type	format_type	castfunc	castcontext	castmethod	proname 
> pronamespace	proowner	prolang	procost	prorows	provariadic	protransform 
> prokind	prosecdef	proleakproof	proisstrict	proretset	provolatile 
> proparallel	pronargs	pronargdefaults	prorettype	proargtypes 
> proallargtypes	proargmodes	proargnames	proargdefaults	protrftypes 
> prosrc	probin	proconfig	proacl
> bigint	numeric	1781	i	f	numeric	11	10	12	1	0	0	-	f	false	false	true 
> false	i	s	1	0	1700	20	NULL	NULL	NULL	NULL	NULL	int8_numeric	NULL	NULL	NULL
> numeric	bigint	1779	a	f	int8	11	10	12	1	0	0	-	f	false	false 
> true	false	i	s	1	0	20	1700	NULL	NULL	NULL	NULL	NULL	numeric_int8	NULL 
> NULL	NULL
> numeric	numeric	1703	i	f	numeric	11	10	12	1	0	0	numeric_transform	f 
> false	false	true	false	i	s	2	0	1700	1700 23	NULL	NULL	NULL	NULL	NULL 
> numeric	NULL	NULL	NULL
> 
> 
> ------------------------------------------------------------------------
> Sent from the PostgreSQL - general mailing list archive 
> <https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html; at 
> Nabble.com.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (21+ messages)  latest in thread

Message-ID: <0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com>
Permalink:  ../0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com/
Also on:    postgresql.org/message-id/0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com

 · 

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: adrian.klaver@aklaver.com, marcos@f10.com.br
  Subject: Re: Operator is not unique
  In-Reply-To: <0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com>
  References: <1569332101700-0.post@n3.nabble.com> <CAPfkCSBb6_18z9snrVA=U5Oa3NzZ3QKDzFq+FL8_ygEk2W+6uA@mail.gmail.com> <1569333109982-0.post@n3.nabble.com> <CAPfkCSBaEOcfEOVvDYQVu8CBhvD2AahV+aUk=rBC-0UTt5yo1A@mail.gmail.com> <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>

* 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