pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Roderick A. Anderson <raanders@altoplanos.net>
Cc: PG-SQL <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] Good Optimization
Date: Wed, 07 Jul 1999 11:44:58 -0400
Message-ID: <26222.931362298@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.04.9907070807420.13901-100000@asgard.altoplanos.net>

"Roderick A. Anderson" <raanders@altoplanos.net> writes:
> Also if the optimizer works similar to Oracle then the order of
> where statements would also help in actual performance.  I'm mostly a
> lurker on this list but have never seen anything about this issue.
>    When using Oracle, and won't it be nice when people mention PostgreSQL
> functionality when comparing other databases, the statements at the
> bottom should be the most restrictive and joins should be near the top.

The Postgres optimizer doesn't care about the order of where clauses;
it'll pick out the clauses it thinks are most effective regardless
of the order you write them in.

			regards, tom lane



view thread (27+ messages)  latest in thread

Message-ID: <26222.931362298@sss.pgh.pa.us>
Permalink:  ../26222.931362298@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26222.931362298@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, raanders@altoplanos.net
  Subject: Re: [SQL] Good Optimization
  In-Reply-To: <26222.931362298@sss.pgh.pa.us>
  References: <Pine.LNX.4.04.9907070807420.13901-100000@asgard.altoplanos.net> <26222.931362298@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox