From: Richard Huxton <dev@archonet.com>
To: rawi <only4com@web.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: kind of RULE on SELECT depending on existence of a WHERE condition
Date: Mon, 01 Mar 2010 10:34:35 +0000
Message-ID: <4B8B983B.4080205@archonet.com> (raw)
In-Reply-To: <27741669.post@talk.nabble.com>
References: <27741669.post@talk.nabble.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, only4com@web.de
Subject: Re: kind of RULE on SELECT depending on existence of a WHERE condition
In-Reply-To: <4B8B983B.4080205@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox