Re: show fct_name of the function/procedure

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "ml(at)ft-c(dot)de" <ml(at)ft-c(dot)de>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: show fct_name of the function/procedure
Date: 2024-04-27 20:01:30
Message-ID: CAKFQuwaO5O--1sEpXhoXZx+XX4jVFLpDZjt1cH0ksLOf9D0UnQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Saturday, April 27, 2024, ft <ml(at)ft-c(dot)de> wrote:

>
> fct_name text := pg_fct_name() ; -- I need it
>
>

https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS

PG_ROUTINE_OID

I think casting that to “regproc” will get you what you need. Otherwise
there should be functions or a query to perform the needed lookup.

https://www.postgresql.org/docs/current/datatype-oid.html

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ayush Vatsa 2024-04-28 13:01:05 Query Discrepancy in Postgres HLL Test
Previous Message ft 2024-04-27 19:53:07 show fct_name of the function/procedure