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

From: rawi <only4com(at)web(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: kind of RULE on SELECT depending on existence of a WHERE condition
Date: 2010-03-02 09:43:23
Message-ID: 27753818.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Craig Ringer 2010-03-02 12:07:56 Re: kind of RULE on SELECT depending on existence of a WHERE condition
Previous Message Ray Madigan 2010-03-02 02:10:47 Trigger on select :-(