X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CBC1A5E46C3 for ; Wed, 1 Sep 2004 07:25:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01532-03 for ; Wed, 1 Sep 2004 10:25:47 +0000 (GMT) Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40]) by svr1.postgresql.org (Postfix) with ESMTP id 092A75E46E9 for ; Wed, 1 Sep 2004 07:25:46 -0300 (ADT) Received: from [203.199.147.2] (port=46706 helo=ps0499.persistent.co.in) by frodo.hserus.net with esmtpsa (Cipher TLSv1:RC4-MD5:128) (Exim 4.42 #0) id 1C2SJF-00082t-RA by authid with plain; Wed, 01 Sep 2004 15:55:46 +0530 From: Shridhar Daithankar To: gbarosio@uolsinectis.com.ar Subject: Re: slower every day Date: Wed, 1 Sep 2004 15:55:36 +0530 User-Agent: KMail/1.7 Cc: pgsql-performance@postgresql.org References: <20040901100622.501786C4EA@tino.sinectis.com.ar> In-Reply-To: <20040901100622.501786C4EA@tino.sinectis.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409011555.36879.shridhar@frodo.hserus.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/7 X-Sequence-Number: 8135 On Wednesday 01 Sep 2004 3:36 pm, G u i d o B a r o s i o wrote: > Dear all, > > I am currently experiencing troubles with the performance of my > critical's database. > > The problem is the time that the postgres takes to perform/return a > query. For example, trying the \d command takes between 4 or 5 > seconds. This table is very big, but I am not asking for the rows, only > asking the table schema, so...why is this so slow?!?!? My last > administrative action into this table was a reindex to all the indexes via > the BKI in standalone mode. I thought I suceed, but this was las saturday. > Today I am in the same situation again. Is this database vacuumed and analyzed recently? I would suggest database-wide vacuum full analyze. If your queries are getting slower, then checking the explain analyze output is a good starting point. To see queries issued by psql, start it as psql -E. HTH Shridhar