Re: kind of RULE on SELECT depending on existence of a WHERE condition

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: kind of RULE on SELECT depending on existence of a WHERE condition
Дата
Msg-id 4B8B983B.4080205@archonet.com
обсуждение исходный текст
Ответ на kind of RULE on SELECT depending on existence of a WHERE condition  (rawi <only4com@web.de>)
Ответы Re: kind of RULE on SELECT depending on existence of a WHERE condition  (rawi <only4com@web.de>)
Список pgsql-sql
On 01/03/10 10:07, rawi wrote:
> But - for the case, that an application-programmer or even I (tired, middle
> in the night) forget to program the insertion of the needed limiting WHERE
> condition - it would be great to have some sort of rule ON SELECT, so a
> SELECT without WHERE on the flags would return NOTHING.
>
> Is there a way to achieve this?

Not quite the way you suggest. You could build a series of views with 
the WHERE conditions built in to them, and grant permissions on those 
though.

--   Richard Huxton  Archonet Ltd


В списке pgsql-sql по дате отправления:

Предыдущее
От: rawi
Дата:
Сообщение: kind of RULE on SELECT depending on existence of a WHERE condition
Следующее
От: rawi
Дата:
Сообщение: Re: kind of RULE on SELECT depending on existence of a WHERE condition