Skip site navigation (1) Skip section navigation (2)

Re: strange query behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tim Jones" <TJones(at)optio(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: strange query behavior
Date: 2006-12-13 21:58:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
"Tim Jones" <TJones(at)optio(dot)com> writes:
> The tables for theses queries are vacuumed and analyzed regularly. I
> just did an analyze to be sure and here are the results
> ...

There's something pretty wacko about the choice of plan in the slow case
--- I don't see why it'd not have used the same plan structure as for
the IN case.  It's coming up with a cost a lot higher than for the
other, so it certainly knows this isn't a great plan ...

Which PG version is this exactly?  Are you running with any nondefault
planner parameters?

			regards, tom lane

In response to


pgsql-performance by date

Next:From: Tim JonesDate: 2006-12-13 22:08:44
Subject: Re: strange query behavior
Previous:From: Tom LaneDate: 2006-12-13 21:48:47
Subject: Re: Optimizing a query

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group