pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Quinn <mquinn@co.merced.ca.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: The order of fields around the "=" in the WHERE conditions
Date: Mon, 03 Apr 2006 17:58:02 -0400
Message-ID: <17162.1144101482@sss.pgh.pa.us> (raw)
In-Reply-To: <44313030020000E5000001DA@dp_mail.co.merced.ca.us>
References: <44313030020000E5000001DA@dp_mail.co.merced.ca.us>

"Mike Quinn" <mquinn@co.merced.ca.us> writes:
> -- The order of fields around the "=" in the WHERE conditions
> -- affects the query plan.

BTW, what's the datatype(s) of the join columns?  The behavior looks
consistent with the idea that the planner doesn't think it can commute
the join conditions, which would be a bug/omission in the set of
operators existing for the datatype(s).  I believe we've got commutators
for all the standard '=' operators, but a contrib or third-party
datatype might be missing this.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <17162.1144101482@sss.pgh.pa.us>
Permalink:  ../17162.1144101482@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17162.1144101482@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mquinn@co.merced.ca.us
  Subject: Re: The order of fields around the "=" in the WHERE conditions
  In-Reply-To: <17162.1144101482@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