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

From Adrian Klaver
Subject Re: Operator is not unique
Date
Msg-id 5f015007-4343-bf46-621a-e707b8206f5f@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/30/19 5:48 AM, PegoraroF10 wrote:
> This select gives me:
> 
> ERROR: more than one function named "pg_catalog.day_inc"

In psql:

\df pg_catalog.day_inc

Or if you cannot get to psql then the query behind the above:

SELECT n.nspname as "Schema",
   p.proname as "Name",
   pg_catalog.pg_get_function_result(p.oid) as "Result data type",
   pg_catalog.pg_get_function_arguments(p.oid) as "Argument data types",
  CASE p.prokind
   WHEN 'a' THEN 'agg'
   WHEN 'w' THEN 'window'
   WHEN 'p' THEN 'proc'
   ELSE 'func'
  END as "Type"
FROM pg_catalog.pg_proc p
      LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
WHERE p.proname OPERATOR(pg_catalog.~) '^(pg_catalog.day_inc)$'
   AND pg_catalog.pg_function_is_visible(p.oid)
ORDER BY 1, 2, 4;


> 
> 
> 
> --
> 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: PegoraroF10
Date:
Subject: Re: Operator is not unique