X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 75B0DD1B4C4 for ; Mon, 5 Jan 2004 20:35:16 +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 51665-08 for ; Mon, 5 Jan 2004 16:34:26 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A0CEDD1B49B for ; Mon, 5 Jan 2004 16:34:26 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i05KYQU8065368 for ; Mon, 5 Jan 2004 20:34:26 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i05KStLQ062342 for pgsql-performance@postgresql.org; Mon, 5 Jan 2004 20:28:55 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.performance Subject: Re: Use my (date) index, darn it! Date: Mon, 05 Jan 2004 15:27:43 -0500 Organization: cbbrowne Computing Inc Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:fBD9OABaBFlG3B8g2r62ovVmWqk= To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/54 X-Sequence-Number: 5229 In the last exciting episode, siracusa@mindspring.com (John Siracusa) wrote: > What column(s) should I increase? Do I have to do anything after increasing > the statistics, or do I just wait for the stats collector to do its thing? You have to ANALYZE the table again, to force in new statistics. And if the index in question is on _just_ the date column, then it is probably only that date column where the "SET STATISTICS" needs to be increased. -- let name="cbbrowne" and tld="cbbrowne.com" in name ^ "@" ^ tld;; http://www.ntlug.org/~cbbrowne/sap.html Faith is the quality that enables you to eat blackberry jam on a picnic without looking to see whether the seeds move. -- DeMara Cabrera