Re: faster SELECT - Mailing list pgsql-general

From Richard Huxton
Subject Re: faster SELECT
Date
Msg-id 200403081027.15868.dev@archonet.com
Whole thread Raw
In response to faster SELECT  (sferriol <sylvain.ferriol@imag.fr>)
List pgsql-general
On Monday 08 March 2004 09:41, sferriol wrote:
> hello
> in a 'SELECT', does postgres read the 'WHERE' condition from left to right.
>
> for example
> 1) select ... where a and b;
> 2) select ... where b and a;
>
> 1 and 2 will use the same cpu time or not ?

I really wouldn't worry about it, for two reasons.
1. The difference in timing is going to be negligible (probably not
measurable).
2. The developers might change their mind about evaluation order, in which
case you've wasted your time optimising.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Dexter Tad-y
Date:
Subject: Re: faster SELECT
Next
From: Vladimir Drobny
Date:
Subject: postmaster freeze