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 34D36D1B4AC for ; Tue, 6 Jan 2004 21:30:21 +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 81950-05 for ; Tue, 6 Jan 2004 17:29:34 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id CB2EBD1C9CE for ; Tue, 6 Jan 2004 17:25:07 -0400 (AST) Received: from [63.195.55.98] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 4212837; Tue, 06 Jan 2004 13:26:08 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Michael Shapiro , pgsql-performance@postgresql.org Subject: Re: PgAdmin startup query VERY slow Date: Tue, 6 Jan 2004 13:01:43 -0800 User-Agent: KMail/1.4.3 References: <5.2.0.9.2.20040106144745.00bcfe30@pop.ncsa.uiuc.edu> In-Reply-To: <5.2.0.9.2.20040106144745.00bcfe30@pop.ncsa.uiuc.edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401061301.43954.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/73 X-Sequence-Number: 5248 Michael, > With a particular database, PgAdmin3 takes a very long time to connect to= a=20 > database. this is not a general problem with PgAdmin, but only with one= =20 > database out of many. Other databases do not have the problem. And only= =20 > with one particular server. The exact same database on a different server= =20 > does not have the problem. Have you run VACUUM ANALYZE *as the superuser* on the faulty server recentl= y?=20=20 From the look of the explain, PG is grossly underestimating the number of= =20 items in the pg_trigger and pg_depend tables, and thus choosing an=20 inappropriate nested loop execution. --=20 -Josh Berkus Aglio Database Solutions San Francisco