Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D32099FA363 for ; Wed, 13 Dec 2006 18:36:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 49647-01 for ; Wed, 13 Dec 2006 18:36:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 124F39FA162 for ; Wed, 13 Dec 2006 18:36:50 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kBDManpJ012549; Wed, 13 Dec 2006 17:36:49 -0500 (EST) To: "Tim Jones" cc: pgsql-performance@postgresql.org Subject: Re: strange query behavior In-reply-to: <47668A1334CDBF46927C1A0DFEB223D39F7A98@mail.optiosoftware.com> References: <47668A1334CDBF46927C1A0DFEB223D39F79A5@mail.optiosoftware.com> <10648.1166037392@sss.pgh.pa.us> <47668A1334CDBF46927C1A0DFEB223D39F79FA@mail.optiosoftware.com> <12115.1166047135@sss.pgh.pa.us> <47668A1334CDBF46927C1A0DFEB223D39F7A98@mail.optiosoftware.com> Comments: In-reply-to "Tim Jones" message dated "Wed, 13 Dec 2006 17:08:44 -0500" Date: Wed, 13 Dec 2006 17:36:49 -0500 Message-ID: <12548.1166049409@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/345 X-Sequence-Number: 22401 "Tim Jones" writes: >> Which PG version is this exactly? Are you running with any nondefault >> planner parameters? > Version 8.1 8.1.what? > Here are the planner constraints I believe we changed > effective_cache_size and random_page_cost Those look reasonably harmless. My best bet at the moment is that you've got a pretty early 8.1.x release and are hitting one of the planner bugs that we fixed earlier this year. Not enough info to say for sure though. regards, tom lane