X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4D3E7D1BA8F for ; Sun, 22 Feb 2004 22:07:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 71735-08 for ; Sun, 22 Feb 2004 18:07:00 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 36019D1BA8E for ; Sun, 22 Feb 2004 18:06:58 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i1MM6w6O018942; Sun, 22 Feb 2004 17:06:58 -0500 (EST) To: John Siracusa Cc: Postgres Performance Subject: Re: Column correlation drifts, index ignored again In-reply-to: <94FA2D7A-64CC-11D8-9DEA-000A95BA4506@mindspring.com> References: <94FA2D7A-64CC-11D8-9DEA-000A95BA4506@mindspring.com> Comments: In-reply-to John Siracusa message dated "Sat, 21 Feb 2004 19:18:04 -0500" Date: Sun, 22 Feb 2004 17:06:58 -0500 Message-ID: <18941.1077487618@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/252 X-Sequence-Number: 5776 John Siracusa writes: > I want to do something that will convince Postgres that using the date > index is, by far, the best plan when running my queries, even when the > date column correlation stat drops well below 1.0. Have you tried experimenting with random_page_cost? Seems like your results suggest that you need to lower it. regards, tom lane