Re: What is the fastest null WHERE

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: Mindaugas Riauba <mind(at)bi(dot)lt>
Cc: Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: What is the fastest null WHERE
Date: 2003-10-01 12:51:46
Message-ID: 1065012705.83185.78.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, 2003-10-01 at 08:11, Mindaugas Riauba wrote:
> While writing web application I found that it would
> be very nice for me to have "null" WHERE clause. Like
> WHERE 1=1. Then it is easy to concat additional
> conditions just using $query . " AND col=false" syntax.
>
> But which of the possible "null" clauses is the fastest
> one?

WHERE true AND ....

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mindaugas Riauba 2003-10-01 13:05:41 Re: What is the fastest null WHERE
Previous Message Richard Huxton 2003-10-01 12:39:01 Re: What is the fastest null WHERE