Re: bug in query planning? - Mailing list pgsql-general

From Tom Lane
Subject Re: bug in query planning?
Date
Msg-id 29392.1072068467@sss.pgh.pa.us
Whole thread Raw
In response to bug in query planning?  (Steven D.Arnold <stevena@neosynapse.net>)
Responses Re: bug in query planning?  (Steven D.Arnold <stevena@neosynapse.net>)
List pgsql-general
"Steven D.Arnold" <stevena@neosynapse.net> writes:
> Query (2) below is the same query, but we reverse the order of the
> tables.  It's obviously not quite the same query semantically, even
> though in my case it should always produce the same result.

Since it is in fact not the same query, I'm unclear on why you expect
it to produce the same plan.

> I'm using version 7.3.4 of Postgres.

FWIW, I believe that 7.4 will recognize that (1) and (3) are
semantically equivalent.

            regards, tom lane

pgsql-general by date:

Previous
From: Steven D.Arnold
Date:
Subject: bug in query planning?
Next
From: Paul Ganainm
Date:
Subject: Groff and Weinberg SQL Complete Reference - Sample database?