Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2oIo-00073R-2E for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jun 2015 22:16:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z2oIn-0003JM-Gn for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jun 2015 22:16:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z2oIm-0003HR-EV for pgsql-bugs@postgresql.org; Wed, 10 Jun 2015 22:16:52 +0000 Received: from nm20-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.45]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z2oIf-0007io-C5 for pgsql-bugs@postgresql.org; Wed, 10 Jun 2015 22:16:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1433974603; bh=cahIBKYSzVMN90msDwzWFG/JvbEmgKM9YmCtXOekHBY=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=mLgHdfEI7RNG9pl3/QznJ6xIkoXL8Fe6FGE90j6DJG/HT781a0lvw+UrLGK9+f4IXzUFcx8itQnVjSOfedacA+WZaak8iMsnam5ks9Vf98QW+tpVhhk9xy5Ctp0N4alXiTGno/1g8zJhrinG3NdcargCFy3jqEeVWo5z3z8AwhiQ7gethiG6PNf6qDP5lYEKcWpDa2Do0Yeykm7lr97DDow4xsfd4Jb/GVMm8gwGRpzEKSmSCCLvjLlpr/Om8oVqs0PSSfFwy/oNcmK2caa3zwFYe1nxMGItnp5GYbr/0CHnvBorMN7HfbEoNNE4ZXnIViiLKxJGRCSRaXAht+PPwQ== Received: from [98.138.101.129] by nm20.bullet.mail.ne1.yahoo.com with NNFMP; 10 Jun 2015 22:16:43 -0000 Received: from [98.138.86.156] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 10 Jun 2015 22:16:43 -0000 Received: from [127.0.0.1] by omp1014.mail.ne1.yahoo.com with NNFMP; 10 Jun 2015 22:16:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 773075.25921.bm@omp1014.mail.ne1.yahoo.com X-YMail-OSG: MK4_OSYVM1l6WCApFhwRUXi6NjcaR5NoaPanp9uq9N2tfrhXOZwaqRMDCIMVfr5 dEC8wk3iQT6YkuMSK5EA_RcPUGSWjWesDzIpLCfMhiXXnnSWpj.FNtxSc81K84jwYj.TPjs4F..t GmssDIzkMztn7hDve.W244tTuGpwiZVanvImZczKK5CFFFFoqCfBR5kbPcw9jtdYYPhMw26r1ZYd 9c75pDmAL58FM02jYGfM6G_3EqM6ToEzI3mJeqqiRoquB_xCfTY30anT.vwSe6ubY2_4teqxAx4i LRvkMqZXbPp8S51txdgfFl6xkmktRJu1XyEnb23FjKvE9SKQQ3DWQ5KHx4rFW3tRV8wFvIhUkPav ZBsZqFjYLrCuv.8fKxasv62jA2rMRpDIuXatLAhxTqxGNSUF0psGv76Cc6C7I5mBypiTWUHMFyq_ n7QhV2zX1azqiM8UlVBDeViIMwBbAe0CZzB_47O3vfa_0W1vY_khmvjC95RFsIFuYHtiB_EKQjkA 5l_YRt1KaxlrBRRs86c.nzjqr Received: by 98.138.105.214; Wed, 10 Jun 2015 22:16:43 +0000 Date: Wed, 10 Jun 2015 22:16:42 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Jamie Koceniak , "David G. Johnston" Cc: "pgsql-bugs@postgresql.org" Message-ID: <1867376762.603220.1433974602221.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <84CE67AB46ACDA41B18094177DD0853D3A8AC2@ORD2MBX04C.mex05.mlsrvr.com> References: <84CE67AB46ACDA41B18094177DD0853D3A8AC2@ORD2MBX04C.mex05.mlsrvr.com> Subject: Re: BUG #13426: table bloat - dead rows not removed after vacuum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 682 X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jamie Koceniak wrote: > David G. Johnston [mailto:david.g.johnston@gmail.com] wrote: >> One possibility is that you have a long-running transaction >> holding up cleanup. > No long running queries are in pg_stat_activity. It doesn't take a long-running *query* to cause a problem; it only takes a long-running *transaction*. Look for transactions which are "idle in transaction" with an old xact_start value. Also check the pg_prepared_xacts view for rows with a "prepared" value that is more than a few seconds old. Either will prevent the cleanup of dead rows. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs