Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER - Mailing list pgsql-admin

From Tom Lane
Subject Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Date
Msg-id 4191919.1718744911@sss.pgh.pa.us
Whole thread Raw
In response to Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses RE: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
List pgsql-admin
"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



pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Next
From: PABLO ANDRES IBARRA DUPRAT
Date:
Subject: RE: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER