X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 578D3D1B561 for ; Tue, 12 Aug 2003 00:45:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 62615-10 for ; Mon, 11 Aug 2003 21:43:49 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 5ED38D1B53A for ; Mon, 11 Aug 2003 21:45:06 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3504009; Mon, 11 Aug 2003 17:45:33 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Tom Lane Subject: Re: Odd problem with performance in duplicate database Date: Mon, 11 Aug 2003 17:43:48 -0700 User-Agent: KMail/1.4.3 Cc: pgsql-performance@postgreSQL.org References: <200308111716.22288.josh@agliodbs.com> <27573.1060648162@sss.pgh.pa.us> In-Reply-To: <27573.1060648162@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308111743.48564.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/189 X-Sequence-Number: 3006 Tom, > Partly. The numbers suggest that in ANALYZE's default sample of 3000 > rows, it's only finding about a dozen non-null tgroup_ids (yielding the > 0.996 null_frac value); and that in one case all dozen are different and > in the other case there are two duplicates. It would help if you > boosted the stats target for this column by a factor of 10. (You can > do that in 7.2, btw --- IIRC the only problem is that a pg_dump won't > show that you did so.) Also, there doesn't seem to be any way in 7.2 for me to find out what the= =20 current statistics target for a column is. What am I missing? --=20 -Josh Berkus Aglio Database Solutions San Francisco