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 D433ED1C47A for ; Mon, 11 Aug 2003 23:00:39 +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 55158-02 for ; Mon, 11 Aug 2003 19:59:10 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 49AA8D1C7F1 for ; Mon, 11 Aug 2003 20:00:28 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3503341 for pgsql-performance@postgresql.org; Mon, 11 Aug 2003 16:00:54 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Odd problem with performance in duplicate database Date: Mon, 11 Aug 2003 15:59:09 -0700 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308111559.09924.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/182 X-Sequence-Number: 2999 Peter, > I'm sure that you've thought of this, but it sounds like you may not have > done an analyze in your new DB. Yes. Also a VACUUM. Also forcing a REINDEX on the major involved tables. Also running counts on the pg_* system tables to see if any objects did not= =20 get restored from the backup as compared with the live database. By everything I can measure, the live database and the test are identical; = yet=20 the test does not think that idx_caseclients_case is very accessable, and t= he=20 live database knows it is. Is this perhaps a bug with ANALYZE statistics in 7.2.4? I know that in tha= t=20 version I don't have the option of increasing the statistics sampling ... --=20 -Josh Berkus Aglio Database Solutions San Francisco