Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s0o6s-007RUz-9O for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2024 19:53:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s0o6p-00ATgl-0a for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2024 19:53:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s0o6o-00ATgc-Lr for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2024 19:53:19 +0000 Received: from einhorn.in-berlin.de ([192.109.42.8] helo=einhorn-mail-out.in-berlin.de) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s0o6h-000LJL-L5 for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2024 19:53:18 +0000 X-Envelope-From: ml@ft-c.de X-Envelope-To: Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 43RJr7t22246342 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sat, 27 Apr 2024 21:53:07 +0200 Message-ID: <4e6435ceb793472cf52fdbd196f9d50c84469619.camel@ft-c.de> Subject: show fct_name of the function/procedure From: ft Reply-To: ml@ft-c.de To: pgsql-general@lists.postgresql.org Date: Sat, 27 Apr 2024 21:53:07 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 FreeBSD GNOME Team MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello,=20 I need (a very simple construct) to show the fct_name/proc_name=C2=A0 for the function/procedure. Example: create procedure/function bet_process() as=20 $$ declare pid int :=3D pg_backend_pid() ; -- it works fine fct_name text :=3D pg_fct_name() ; -- I need it begin -- do s.th like=20 -- call log(pid, fct_name, 'my message'); end; $$ language plpgsql; Franz