agora inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: PABLO ANDRES IBARRA DUPRAT <Pablo.Ibarra@itau.cl>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Date: Tue, 18 Jun 2024 17:08:31 -0400
Message-ID: <4191919.1718744911@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwY4xtq=M6x2g2BLTgnjvgO=_7ORDF4gnuYX8w4J7eLLcA@mail.gmail.com>
References: <CPUP152MB401802939E39B07A3BD264A887CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM>
<CAKFQuwY0zN14+czWopnT3cZtK2vasrH08XCpXv_u84ejUU2u-g@mail.gmail.com>
<CAKFQuwY4xtq=M6x2g2BLTgnjvgO=_7ORDF4gnuYX8w4J7eLLcA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Specifically:
> select id.*, pg_proc.*, tableoid from pg_proc,
> pg_identify_object(1255,oid,0) as id;
Personally, I'd cast the procedure's OID to regprocedure instead.
More or less the same output, doesn't require magic numbers.
(Although I think you could write "pg_proc.tableoid" instead
of "1255", if you're intent on using pg_identify_object.)
regards, tom lane
view thread (17+ messages) latest in thread
Message-ID: <4191919.1718744911@sss.pgh.pa.us>
Permalink: ../4191919.1718744911@sss.pgh.pa.us/
Also on: postgresql.org/message-id/4191919.1718744911@sss.pgh.pa.us
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: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, Pablo.Ibarra@itau.cl, pgsql-admin@lists.postgresql.org
Subject: Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
In-Reply-To: <4191919.1718744911@sss.pgh.pa.us>
* 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