X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 12F829FB2C0 for ; Mon, 21 Aug 2006 22:56:02 -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 34202-06 for ; Mon, 21 Aug 2006 22:55:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 4436F9FB2B8 for ; Mon, 21 Aug 2006 22:55:55 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k7M1tsNo025535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Aug 2006 18:55:58 -0700 Message-ID: <44EA6426.4020901@commandprompt.com> Date: Mon, 21 Aug 2006 18:55:50 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: Eamonn Kent CC: pgsql-performance@postgresql.org Subject: Re: Vacuum not identifying rows for removal.. References: <9146E3EBBFBCC94D95F95A1C4065348A837AB4@exch01.xsigo.com> In-Reply-To: <9146E3EBBFBCC94D95F95A1C4065348A837AB4@exch01.xsigo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Mon, 21 Aug 2006 18:55:58 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.187 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/328 X-Sequence-Number: 20513 > Any ideas of how to identify the application process that is the > postgres process (whose id I know). Perhaps I need to turn on a > different log flag? select * from pg_stat_activity will give you the pid :) Joshua D. Drake > > > Thanks > > Ike > > > > > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Sent: Monday, August 21, 2006 2:06 PM > To: Eamonn Kent > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] Vacuum not identifying rows for removal.. > > "Eamonn Kent" writes: >> I am using PostgreSQL 8.1.4 for an embedded application. For some >> reason, vacuum is not able to identify rows that are candidates for >> removal (i.e., mark space as available). >> ... >> We run auto vacuum and I can see from the logs that it is running > quite >> frequently. When I run vacuum full from the psql, I can see that space >> is not being recovered. I have run vacuum full with the verbose flag >> set, I can see that messages that indicate the existence of "dead row >> versions that cannot be removed yet. > > This means you've got an open transaction somewhere that could > potentially still be able to see those rows. Look around for > applications sitting "idle in transaction". > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/