Search Postgresql Archives

Re: Check if SELECT is granted

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

 



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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[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