Re: Generating GRANT/REVOKE on functions from catalog

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

Doug Gorley <doug(dot)gorley(at)gmail(dot)com> writes:
> Perfect, I'm using the following function:
> create or replace function fn_sig(p_oid oid) returns text
> as $$
> begin
> return p_oid::regprocedure;
> end;
> $$ language plpgsql;

> In the following query:

> select
> pg_namespace.nspname ||
> '.' ||
> fn_sig(pg_proc.oid)
> from

I wouldn't do that if I were you: regprocedure will already
schema-qualify the function name if it's needed. The additional
qualification you're trying to force will just result in syntax errors.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leif B. Kristensen 2009-08-05 19:12:51 Re: Update Query doesn't affect all records
Previous Message Doug Gorley 2009-08-05 18:14:11 Re: Generating GRANT/REVOKE on functions from catalog