X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A53309F931E for ; Mon, 8 May 2006 14:27:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 65049-01 for ; Mon, 8 May 2006 14:27:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id B318B9F931D for ; Mon, 8 May 2006 14:27:07 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 7ACBD56427; Mon, 8 May 2006 12:27:06 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 8 May 2006 12:27:05 -0500 Date: Mon, 8 May 2006 12:27:05 -0500 From: "Jim C. Nasby" To: Markus Schaber Cc: kah_hang_ang@toray.com.my, "pgsql-performance@postgresql.org" Subject: Re: extremely slow when execute select/delete for certain Message-ID: <20060508172705.GT99570@pervasive.com> References: <445F0D8C.3040106@logix-tt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <445F0D8C.3040106@logix-tt.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060508:schabi@logix-tt.com::/bRtlhsvsHA3es7n:000000000000000000 0000000000000000000000002dx/ X-Hashcash: 1:20:060508:kah_hang_ang@toray.com.my::tzk9ZSvHsoWUesro:000000000000 0000000000000000000000000DFt X-Hashcash: 1:20:060508:pgsql-performance@postgresql.org::+oZzlWaj+mu4nrrt:00000 0000000000000000000000001COu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/137 X-Sequence-Number: 18924 On Mon, May 08, 2006 at 11:21:16AM +0200, Markus Schaber wrote: > Hi, Kah, > > kah_hang_ang@toray.com.my wrote: > > > I already vacuum those tables with full option but it still the same. > > > > What could be the possible causes of this problem? > > How can I solve it? > > > > CPU - Intel Xeon 2.40 GHz > > Memory - 1.5G > > Postgresql version: 7.2.2 > > First, you should consider to upgrade your PostgreSQL server to a newer > version, at least to 7.2.8 which fixes some critical bugs. Note that 7.2.x isn't supported anymore, and there's data loss bugs that could affect it. You should at least move up to 7.4.x. > But it will be much better to upgrade to current 8.1 version, as I think > that your problem is caused by index bloat, and indices are handled much > better in 8.1. > > Try recreating your indices using REINDEX command. And if that doesn't work we need at least the output of EXPLAIN, if not EXPLAIN ANALYZE. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461