You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Describe the issue
A clear and concise description of what the issue is.
create a user function and the name is same as array_in in user schema, like as public.
Steps to reproduce the behaviour:
create a user function
CREATE OR REPLACE FUNCTION public.array_in(anyarray, oid, integer)
STABLE PARALLEL SAFE STRICT
make sure the function is created
the result as following
postgres=# \df array_in
List of functions
Schema | Name | Result data type | Argument data types | Type
pg_catalog | array_in | anyarray | cstring, oid, integer | func
public | array_in | anyarray | anyarray, oid, integer | func
execute the sql in getSQLTypeQuery
postgres=# SELECT typinput='array_in'::regproc as is_array, typtype, typname, pg_type.oid FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE pg_type.oid = $1 ORDER BY sp.r, pg_type.oid DESC
ERROR: more than one function named "array_in"
LINE 1: SELECT typinput='array_in'::regproc as is_array, typtype, ty...
A clear and concise description of what you expected to happen.
And what actually happens
If possible PostgreSQL logs surrounding the occurrence of the issue
Additionally logs from the driver can be obtained adding
Using the following template code make sure the bug can be replicated in the driver alone.
The text was updated successfully, but these errors were encountered: