agora inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: PABLO ANDRES IBARRA DUPRAT <Pablo.Ibarra@itau.cl>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
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 21:14:09 +0000
Message-ID: <CPUP152MB4018C1DFC4FA4E667DA2758A87CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <4191919.1718744911@sss.pgh.pa.us>
References: <CPUP152MB401802939E39B07A3BD264A887CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM>
<CAKFQuwY0zN14+czWopnT3cZtK2vasrH08XCpXv_u84ejUU2u-g@mail.gmail.com>
<CAKFQuwY4xtq=M6x2g2BLTgnjvgO=_7ORDF4gnuYX8w4J7eLLcA@mail.gmail.com>
<4191919.1718744911@sss.pgh.pa.us>
Thanks in advance
-----Mensaje original-----
De: Tom Lane <tgl@sss.pgh.pa.us>
Enviado el: martes, 18 de junio de 2024 17:09
Para: David G. Johnston <david.g.johnston@gmail.com>
CC: PABLO ANDRES IBARRA DUPRAT <Pablo.Ibarra@itau.cl>; pgsql-admin@lists.postgresql.org
Asunto: Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
"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
Para asegurar la adecuada lectura en todo tipo de correos electronicos, se han omitido intencionalmente los signos y acentos diacriticos del idioma castellano. La informacion contenida en este mensaje y cualquier archivo adjunto es confidencial y no puede ser usada por mas personas que sus destinatarios. El uso no autorizado de esta informacion puede ser sancionado de conformidad con el Codigo Penal chileno. Si ha recibido este correo por error, por favor notifique al remitente respondiendo este mismo mensaje y elimine el mensaje y todos los archivos adjuntos. Internet no puede garantizar la integridad de este mensaje, por lo que el Banco no se hace responsable si el contenido del mismo ha sido alterado.
view thread (17+ messages) latest in thread
Message-ID: <CPUP152MB4018C1DFC4FA4E667DA2758A87CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM>
Permalink: ../CPUP152MB4018C1DFC4FA4E667DA2758A87CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM/
Also on: postgresql.org/message-id/CPUP152MB4018C1DFC4FA4E667DA2758A87CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM
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: Pablo.Ibarra@itau.cl, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, pgsql-admin@lists.postgresql.org
Subject: RE: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
In-Reply-To: <CPUP152MB4018C1DFC4FA4E667DA2758A87CE2@CPUP152MB4018.LAMP152.PROD.OUTLOOK.COM>
* 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