Re: Weird ..... (a=1 or a=2) <> (a=2 or a=1) - Mailing list pgsql-general

From Tom Lane
Subject Re: Weird ..... (a=1 or a=2) <> (a=2 or a=1)
Date
Msg-id 14225.1147798911@sss.pgh.pa.us
Whole thread Raw
In response to Re: Weird ..... (a=1 or a=2) <> (a=2 or a=1)  (Rafael Martinez <r.m.guerrero@usit.uio.no>)
Responses Re: Weird ..... (a=1 or a=2) <> (a=2 or a=1)
List pgsql-general
Rafael Martinez <r.m.guerrero@usit.uio.no> writes:
> On Tue, 2006-05-16 at 11:14 -0400, Tom Lane wrote:
>> So much for that theory.  If you copy the table (create table foo as
>> select * from tickets) and build a similar index on the copy, does the
>> behavior persist in the copy?

> The new table behaves well:

Did you check that you were getting the same indexscan plans there?
(If not, try ANALYZEing the copied table.)  You probably were, but
just in case.

This is definitely pretty baffling.  I'm getting to the point where
I want to step through the code with a debugger.  I assume that's not
very practical on your live server.  Would it be feasible at all to
get a physical copy of the database for testing?  Alternatively, do
you know C and gdb well enough to try to debug it for yourself?

            regards, tom lane

pgsql-general by date:

Previous
From: Rafael Martinez
Date:
Subject: Re: Weird ..... (a=1 or a=2) <> (a=2 or a=1)
Next
From: Don Y
Date:
Subject: Namespace issues