Re: No select permission on a table but can query it - Mailing list pgsql-general

From Michele Petrazzo - Unipex srl
Subject Re: No select permission on a table but can query it
Date
Msg-id 48F6DF28.9090307@unipex.it
Whole thread Raw
In response to Re: No select permission on a table but can query it  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
Scott Marlowe wrote:
>> I think that this is a strange question, but: I need to revoke the
>> select permission on a table, but I also need to leave, with a function,
>> a user do a query on column.
>> A real case can be that a user "test" cannot have the permissions for do
>> a "select * from articles", but for do a "select has_article('an_article')"
>> where has_article are:
>
> Look up "security definer" for functions.
>


It was!

Thanks,
MIchele

pgsql-general by date:

Previous
From: "Craig Ayliffe"
Date:
Subject: Problems with Timezones in Australia
Next
From: "David Rowley"
Date:
Subject: Re: Numbering rows