Re: bug in query planning?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Steven D(dot)Arnold" <stevena(at)neosynapse(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: bug in query planning?
Date: 2003-12-22 04:47:47
Message-ID: 29392.1072068467@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Steven D.Arnold" <stevena(at)neosynapse(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-12-22 04:48:21 Re: sql_num_rows on win32
Previous Message Steven D.Arnold 2003-12-22 02:00:17 bug in query planning?