Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6FgZ-0003QU-H0 for pgsql-performance@postgresql.org; Tue, 28 Aug 2012 06:54:03 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6FgX-0003Q8-U9 for pgsql-performance@postgresql.org; Tue, 28 Aug 2012 06:54:02 +0000 Received: by pbbrr13 with SMTP id rr13so8811695pbb.19 for ; Mon, 27 Aug 2012 23:53:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=naENT/90spd8S7bf4PislxZ5X7Bu3rrzLpvGM6Maf2Y=; b=NkbfYUMnZubWqsG+LuLIUxxZoAOJqKqXVBzlLC7Dj/gmZgers5XRf7AoKmwwGKFOiz mejwElmIX9hud5+DfE9EHVK06WXgu9wq0Iz+KhitW3BTkXYXAuatSHnuuypx3SOqJiDb g+kdqPJf/3LZE57nAFkiejKt+DltDfxaRDovKagCitC20YpCep0FlxcG/8UCVNskL2ZE m/RqxH+WtaY+YfD4ltnhatdQdLzo0bXip/WuYfNbQ38KZK2weJFn8yg0dZmrCw+KgT/3 YRUSJTdQf5kwmUuSbhnWreAGk6yuqzInzkyAOCe52OJO14mSFWVxQ8iTe5uCO2Nh2xWC j79Q== Received: by 10.68.241.99 with SMTP id wh3mr40672035pbc.16.1346136839766; Mon, 27 Aug 2012 23:53:59 -0700 (PDT) Received: from ayaki.localdomain (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id b4sm16415176pbw.28.2012.08.27.23.53.56 (version=SSLv3 cipher=OTHER); Mon, 27 Aug 2012 23:53:58 -0700 (PDT) Message-ID: <503C6B02.5070104@ringerc.id.au> Date: Tue, 28 Aug 2012 14:53:54 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Nimesh Satam CC: pgsql-performance@postgresql.org Subject: Re: Vacuum problems with 9.1 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlMsGJFn9sNUgwUvnY9O/ik2AlZKQjlyhU4fUtkPVrePypqoF8EZr7mvVwwEX6TVd/k3X6P X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/178 X-Sequence-Number: 47716 On 08/28/2012 12:33 PM, Nimesh Satam wrote: > Hi, > > We have been using the current version of postgres i.e. 9.1.4 with > streaming replication on. While vacuuming we noticed that certain dead > rows are not getting removed and following debug information is printed: > > "DETAIL: 12560 dead row versions cannot be removed yet." > > As per suggestion, we made sure that no long running transactions are > active. Also all the applications were stopped during this time. > > Can anybody highlight the possible reason for the dead rows not been > cleaned? I don't know if prepared transactions could cause this exact message, but check: select * from pg_prepared_xacts ; to see if you have any prepared transactions (from two-phase commit) lying around. If you don't use XA or 2PC, consider setting max_prepared_transactions to 0 in postgresql.conf if it isn't already. -- Craig Ringer