Re: Check if SELECT is granted - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Check if SELECT is granted
Date
Msg-id 20050902211535.GA28989@winnie.fuhr.org
Whole thread Raw
In response to Re: Check if SELECT is granted  (Poul Møller Hansen <freebsd@pbnet.dk>)
Responses Re: Check if SELECT is granted
List pgsql-general
On Fri, Sep 02, 2005 at 10:39:14PM +0200, Poul Møller Hansen wrote:
> >
> >See the has_table_privilege() function.
>
> Thanks, but how does it work ?
>
> select has_table_privelege('public.mytable', 'select');
> ERROR:  function has_table_privelege("unknown", "unknown") does not exist
> HINT:  No function matches the given name and argument types. You may
> need to add explicit type casts.

It helps if you spell "privilege" correctly ;-)

--
Michael Fuhr

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Trouble with bytea in SPI...
Next
From: Hrishikesh Deshmukh
Date:
Subject: Schema overlay question