Search Postgresql Archives

Re: Generating GRANT/REVOKE on functions from catalog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Doug Gorley <doug.gorley@xxxxxxxxx> writes:
> The statement I need to generate is:

> revoke all on function public.add(integer, integer) from someuser;

> I'm attempting to use the pg_proc table in the system catalogs, and I'm 
> good up to the point where I need the parameter types.  Can anyone give 
> me a hand with this?

Personally, I'd cast the function OID to regprocedure, instead of
doing it the hard way ...

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux