Re: Regression in PG14 LookupFuncName

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sven Klemm <sven(at)timescale(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Regression in PG14 LookupFuncName
Date: 2021-09-09 00:13:48
Message-ID: 3530328.1631146428@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sven Klemm <sven(at)timescale(dot)com> writes:
> In PG12 and PG13 LookupFuncName would return procedures as well as
> functions while in PG14 since commit e56bce5d [0] it would disregard
> all procedures
> and not return them as match.
> Is this intended behaviour or an unintended side effect of the refactoring?

It was intentional, because all internal callers of LookupFuncName only
want to see functions. See the last few messages in the referenced
discussion thread:

https://www.postgresql.org/message-id/flat/3742981.1621533210%40sss.pgh.pa.us

You should be able to use LookupFuncWithArgs if you want a different
definition.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-09-09 01:09:52 Re: Estimating HugePages Requirements?
Previous Message Sven Klemm 2021-09-09 00:01:11 Regression in PG14 LookupFuncName