Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: PABLO ANDRES IBARRA DUPRAT <Pablo(dot)Ibarra(at)itau(dot)cl>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Date: 2024-06-18 21:02:08
Message-ID: CAKFQuwY4xtq=M6x2g2BLTgnjvgO=_7ORDF4gnuYX8w4J7eLLcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Jun 18, 2024 at 12:42 PM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Tuesday, June 18, 2024, PABLO ANDRES IBARRA DUPRAT <
> Pablo(dot)Ibarra(at)itau(dot)cl> wrote:
>
>>
>>
>> As you know to identify
>> the procedure or function is neccesary to add to the name of routine and
>> list of parameters with their data type in each case.
>>
>>
>>
>>
> See
> https://www.postgresql.org/docs/current/functions-info.html#FUNCTIONS-INFO-OBJECT
>
> pg_identify_object
>
>
>
Specifically:

select id.*, pg_proc.*, tableoid from pg_proc,
pg_identify_object(1255,oid,0) as id;

type | function
schema | public
name |
identity | public."i.am.a.function"(pg_catalog.text,integer)
oid | 16389
proname | i.am.a.function
[...]

David J.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2024-06-18 21:08:31 Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Previous Message PABLO ANDRES IBARRA DUPRAT 2024-06-18 21:01:44 RE: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER