Re: Operator is not unique - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Operator is not unique
Date
Msg-id 4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com
Whole thread Raw
In response to Re: Operator is not unique  (PegoraroF10 <marcos@f10.com.br>)
Responses Re: Operator is not unique
List pgsql-general
On 9/24/19 7:18 AM, PegoraroF10 wrote:
> Nope, seems I didn´t create anything.
> 
> SELECT * FROM pg_operator WHERE oid = '+(numeric, bigint)'::regoperator;
> ERROR: operator does not exist: +(numeric, bigint)
> 
> Ok, I can cast, it works. But why works without casting for you and not for
> me ?

Per Tom's suggestion try:

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;

> 
> 
> 
> --
> Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: PegoraroF10
Date:
Subject: Re: Operator is not unique
Next
From: Matthias Apitz
Date:
Subject: updating sequence value for column 'serial'