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 1s0oFq-007SWA-7a for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2024 20:02:38 +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 1s0oEp-00AagY-IR for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2024 20:01:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s0oEp-00AagQ-7M for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2024 20:01:36 +0000 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s0oEm-000ONx-RM for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2024 20:01:35 +0000 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-5aa26990d5aso2133238eaf.1 for ; Sat, 27 Apr 2024 13:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714248091; x=1714852891; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KaU7v1ycOFDaRleTzJHranQT27iRwNUI0MHWkihk+Tc=; b=VLzv+DqtLncNZCff/6gzQ1aESzBQrVZVCkC/VFYENFAQn8IUTyHwL7NDOWlhNhKBk+ bRPylSkMNesQfwemJDbXVeHAd/x/jRmSL8qdsl3118SeJySFpjeuaq4hOgaX3F5jHfTr xPW57JTRa9lnk0B1PtFYc5Ue5GvdLIzm2X0ui/PCUycp/nIzMNVb3BLksZUb4NG1cvVD pl8q6GuugLrwJsoPWCtqo/vFKHNUPRlSvgKDmOf35NTomdp9qUJpKv4Qk8IVlqwTlnUp Z1nZ9v/yN1uvrOIaXsZEvgcDzGqmiNCBIb6ss92vIo9eZ9TMzmX0Pib0Oj/8r620OwkK JWew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714248091; x=1714852891; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KaU7v1ycOFDaRleTzJHranQT27iRwNUI0MHWkihk+Tc=; b=SSzYMbOHNJXKGx8PGGcw2WiilOiEy4jJA0QdkKFnLDaO6ErLzRG/x6lMr5Ibuv81v3 bvnxlNfg7pCQEAwlaqwGLDYxyegdUP/hekiW5bMgy1ZwHzbiWimoF4JpAtGTfV4DRjxg NhmuHh4tgX7dyFXsyNDWikcffJUq6U15COwPban5i2IJQP5CAphCvG1m6c3Wb2oDHO8P Daf7+auHmv2CQ0rvxs36Q4n3K5Q1Q4iEjqFQ1Zufud/QyCoDsrnucy4YcMAAagVS4Pqv 4KcAh4mkjtOQWAhonV115EzhMO2rei6ck9UPnGt237S+j4yCwY3IsMLNFKUJWdAN4g5l cQxQ== X-Gm-Message-State: AOJu0YzyWhUYAwVL8BOLIFr5JycG5GqNsGB61vSo8i+PgHwIiqViINNF PHEOqwvr7XKemzS5hODuksm96rdimGkGXJlopxaOQ/hY3W8wBCnUHqReeVEcsQjFPSglDDV+B/3 GLEBtqs8nFh0Izczi547lnsIT9bC5Zw== X-Google-Smtp-Source: AGHT+IGKuqHyDcY7sK9e6wqkzbw1q4zDLqp4JIq99O66ehBZ5pIhEzlfH+xVetdi/H88nf2CV5aibpExmbpJ2P5eArI= X-Received: by 2002:a4a:98f3:0:b0:5ac:9e85:832f with SMTP id b48-20020a4a98f3000000b005ac9e85832fmr7480775ooj.5.1714248090841; Sat, 27 Apr 2024 13:01:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:6e5:b0:52a:9016:8503 with HTTP; Sat, 27 Apr 2024 13:01:30 -0700 (PDT) In-Reply-To: <4e6435ceb793472cf52fdbd196f9d50c84469619.camel@ft-c.de> References: <4e6435ceb793472cf52fdbd196f9d50c84469619.camel@ft-c.de> From: "David G. Johnston" Date: Sat, 27 Apr 2024 13:01:30 -0700 Message-ID: Subject: Re: show fct_name of the function/procedure To: "ml@ft-c.de" Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000082fa550617197c11" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000082fa550617197c11 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, April 27, 2024, ft wrote: > > fct_name text :=3D pg_fct_name() ; -- I need it > > https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STA= TEMENTS-DIAGNOSTICS PG_ROUTINE_OID I think casting that to =E2=80=9Cregproc=E2=80=9D will get you what you nee= d. Otherwise there should be functions or a query to perform the needed lookup. https://www.postgresql.org/docs/current/datatype-oid.html David J. --00000000000082fa550617197c11 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, April 27, 2024, ft <ml@ft-c.d= e> wrote:

=C2=A0fct_name text :=3D pg_fct_name()=C2=A0 =C2=A0 ; --=C2=A0 I need it


PG_ROUTINE_OID

<= /div>
I think casting that to =E2=80=9Cregproc=E2=80=9D will get you wh= at you need.=C2=A0 Otherwise there should be functions or a query to perfor= m the needed lookup.


David J.

--00000000000082fa550617197c11--