X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BDE54D1B55F for ; Tue, 21 Oct 2003 10:57:25 +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 34709-09 for ; Tue, 21 Oct 2003 07:56:56 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 89124D1B527 for ; Tue, 21 Oct 2003 07:56:53 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 1ABuC8-0005c4-00 for ; Tue, 21 Oct 2003 06:56:56 -0400 Received: by dba2 (Postfix, from userid 1019) id 273FAC63E; Tue, 21 Oct 2003 06:56:56 -0400 (EDT) Date: Tue, 21 Oct 2003 06:56:56 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: index file bloating still in 7.4 ? Message-ID: <20031021105655.GB9837@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <200310181458.15575.josh@agliodbs.com> <16213.1066530060@sss.pgh.pa.us> <17172.1066542509@sss.pgh.pa.us> <19692.1066578442@sss.pgh.pa.us> <15968.1066686172@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15968.1066686172@sss.pgh.pa.us> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/519 X-Sequence-Number: 4267 On Mon, Oct 20, 2003 at 05:42:52PM -0400, Tom Lane wrote: > hold of these dead rows instead of recycling them. I suspect you have > a client process somewhere that is holding an open transaction for a > long time ... probably not doing anything, just sitting there with an > unclosed BEGIN ... Which could be because you're doing something nasty with one of the "autocommit=off" clients. Most of the client libraries implement this by doing "commit;begin;" at every commit. This means you have way more idle in transaction connections than you think. Look in pg_stat_activity, assuming you've turned on query echoing. A -- ---- Andrew Sullivan 204-4141 Yonge Street Afilias Canada Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110