Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1C4CA475B9E for ; Thu, 8 Aug 2002 16:55:53 -0400 (EDT) Received: from mail.libertyrms.com (unknown [216.94.172.167]) by postgresql.org (Postfix) with ESMTP id A1E22475B88 for ; Thu, 8 Aug 2002 16:55:52 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17cuK2-0007oJ-00 for ; Thu, 08 Aug 2002 16:55:54 -0400 Date: Thu, 8 Aug 2002 16:55:54 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: Postgres performance slowly gets worse over a month Message-ID: <20020808165554.S7239@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <1028830018.13363.42.camel@skymaster> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1028830018.13363.42.camel@skymaster>; from rmeyer@installs.com on Thu, Aug 08, 2002 at 02:06:57PM -0400 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/85 X-Sequence-Number: 5200 On Thu, Aug 08, 2002 at 02:06:57PM -0400, Robert M. Meyer wrote: > have a contractor that did the reindex for us so I'm not sure of the > process at this point. I suspect that it's something like; > 1. shut down postgres > 2. run 'postgres -O -P' to start a single user instantiation of the > engine > 3. type 'reindex' to get it to do it > 4. exit postgres and restart the DB with pg_ctl > > Does that sound about right? What you are talking about there is reindexing the system tables. But "recreating the indexes" as a solution to file growth and performance problems is not this. Instead, what you do is drop the index and recreate it. At least, that's what I have gathered from the "reindex" scripts that were sent to the -general list a little while ago. > Any other suggestions? Yes. As someone else suggested, it sounds like you need a full-time DBA, at least for a little while. A -- ---- Andrew Sullivan 87 Mowat Avenue Liberty RMS Toronto, Ontario Canada M6K 3E3 +1 416 646 3304 x110