Re: Generating GRANT/REVOKE on functions from catalog

From: Doug Gorley <doug(dot)gorley(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Generating GRANT/REVOKE on functions from catalog
Date: 2009-08-04 22:45:02
Message-ID: 4A78B9EE.4050204@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

That looks like exactly what I want. Is there an easy way to cast that
to a string so that I can concatenate it into a GRANT statement?

------------------------------------------------------------------------
*Doug Gorley* | doug(dot)gorley(at)gmail(dot)com <mailto:doug(dot)gorley(at)gmail(dot)com>

Tom Lane wrote:
> Doug Gorley <doug(dot)gorley(at)gmail(dot)com> 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
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-08-04 22:59:03 Re: Generating GRANT/REVOKE on functions from catalog
Previous Message Tom Lane 2009-08-04 22:24:03 Re: Generating GRANT/REVOKE on functions from catalog