Re: grant execute on many functions - Mailing list pgsql-admin

From Tom Lane
Subject Re: grant execute on many functions
Date
Msg-id 3318.1088567114@sss.pgh.pa.us
Whole thread Raw
In response to Re: grant execute on many functions  (Joe Conway <mail@joeconway.com>)
Responses Re: grant execute on many functions  (Joe Conway <mail@joeconway.com>)
List pgsql-admin
Joe Conway <mail@joeconway.com> writes:
> Jean-Denis Giguere wrote:
>> But, the problem is more complex for functions because you have to give
>> the arguments.

> Does this help?

> SELECT n.nspname || '.' || p.proname ||
>         '(' || pg_catalog.oidvectortypes(p.proargtypes) || ')'

Also, casting the function's OID to regprocedure may be useful.
Random example:

regression=# select 1142::regprocedure;
      regprocedure
------------------------
 date_mii(date,integer)
(1 row)

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to list what queries are running in postgres?
Next
From: Joe Conway
Date:
Subject: Re: grant execute on many functions