Re: kind of RULE on SELECT depending on existence of a WHERE condition - Mailing list pgsql-sql

From rawi
Subject Re: kind of RULE on SELECT depending on existence of a WHERE condition
Date
Msg-id 27753818.post@talk.nabble.com
Whole thread Raw
In response to Re: kind of RULE on SELECT depending on existence of a WHERE condition  (Richard Huxton <dev@archonet.com>)
List pgsql-sql

Richard Huxton wrote:
> 
> You could write a set-returning function that takes either:
> 1. A list of conditions
> 2. The text for a WHERE clause
> If it gets no conditions or a blank string, it returns nothing.
> You will need to create the function with SECURITY DEFINER permissions, 
> 

That's a very good suggestion. I've just red about SECURITY DEFINER...
great.
Thanks

-- 
View this message in context:
http://old.nabble.com/kind-of-RULE-on-SELECT-depending-on-existence-of-a-WHERE-condition-tp27741669p27753818.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



pgsql-sql by date:

Previous
From: Petru Ghita
Date:
Subject: Re: Create functions using a function
Next
From: Craig Ringer
Date:
Subject: Re: kind of RULE on SELECT depending on existence of a WHERE condition