public inbox for [email protected]  
help / color / mirror / Atom feed
From: ft <[email protected]>
To: [email protected]
Subject: show fct_name of the function/procedure
Date: Sat, 27 Apr 2024 21:53:07 +0200
Message-ID: <[email protected]> (raw)

Hello, 

I need (a very simple construct) to show the fct_name/proc_nameĀ 
for the function/procedure.

Example:
create procedure/function bet_process() as 
$$
declare
 pid      int  := pg_backend_pid() ; --  it works fine
 fct_name text := pg_fct_name()    ; --  I need it
begin
 -- do s.th like 
 -- call log(pid, fct_name, 'my message');
end;
$$ language plpgsql;

Franz







view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: show fct_name of the function/procedure
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox