Re: 2 Selects 1 is faster, why? - Mailing list pgsql-sql

From Tom Lane
Subject Re: 2 Selects 1 is faster, why?
Date
Msg-id 2367.1025236360@sss.pgh.pa.us
Whole thread Raw
In response to Re: 2 Selects 1 is faster, why?  (Keith Gray <keith@heart.com.au>)
List pgsql-sql
Keith Gray <keith@heart.com.au> writes:
> ...but is it true that if you place the filter clause first,
> the join will not have to complete the whole table?

PG's planner does not pay attention to the ordering of WHERE clauses;
it will do what it thinks best with them in any case.
        regards, tom lane




pgsql-sql by date:

Previous
From: q u a d r a
Date:
Subject: time difference
Next
From: Joseph Syjuco
Date:
Subject: transaction in plpgsql