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: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Date: 2024-06-18 20:24:45
Message-ID: CAKFQuwaxggv7LZz7UCTR8Yri3K5d3J8RPA1BFuguRygL2agT_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Jun 18, 2024 at 1:23 PM Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:

> On Tue, Jun 18, 2024 at 3:39 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:
>>
>>> Hi Dear Community.
>>>
>>>
>>>
>>> I need your help with
>>> advices about the way to script a SQL command to generate a list of ALTER
>>> PROCEDURE and change owner of a big number of procedures.
>>>
>>> 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.
>>>
>>> Please any advice Will be
>>> appreciate.
>>>
>>>
>>>
>>>
>>>
>>>
>> Have you determined that “reassigned owned” won’t work for you?
>>
>
> That's a pretty blunt club. Changes the ownership of EVERYTHING, no?
>

Maybe that is what is wanted, or is sufficient. I found it plausible the
OP simply was unaware of its existence and should make sure it doesn't
actually meet their needs quickly and easily.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2024-06-18 20:28:48 Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Previous Message David G. Johnston 2024-06-18 20:23:10 Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER