[HACKERS] fresh regression - regproc result contains unwanted schema - Mailing list pgsql-hackers

From Pavel Stehule
Subject [HACKERS] fresh regression - regproc result contains unwanted schema
Date
Msg-id CAFj8pRArVuQUxjENKxzuXZ_NhqbTTn8GhR_YsbBtbuqVvExOLw@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] fresh regression - regproc result contains unwanted schema
List pgsql-hackers
Hi

when I fixed old bug of plpgsql_check I found new regression of regproc output.

set check_function_bodies TO off;

postgres=# create or replace function f1() returns int as $$ begin end $$ language plpgsql;
CREATE FUNCTION
postgres=# select 'f1()'::regprocedure::oid::regproc;
 regproc
---------
 f1
(1 row)

postgres=# create or replace function f1(int) returns int as $$ begin end $$ language plpgsql;
CREATE FUNCTION
postgres=# select 'f1()'::regprocedure::oid::regproc;
  regproc 
-----------
 public.f1
(1 row)

When function is overwritten, then regproc result contains schema, although it is on search_path

This behave breaks regress tests (and it is not consistent)

Tested on master

Regards

Pavel


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] pg_control_recovery() return value when not in recovery
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] fresh regression - regproc result contains unwanted schema