Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbUsT-0005xP-AK for pgsql-admin@arkaria.postgresql.org; Wed, 08 Feb 2017 16:13:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbUsS-0000K3-TV for pgsql-admin@arkaria.postgresql.org; Wed, 08 Feb 2017 16:13:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbUsS-0000Jo-Fl for pgsql-admin@postgresql.org; Wed, 08 Feb 2017 16:13:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbUsP-0000e6-45 for pgsql-admin@postgresql.org; Wed, 08 Feb 2017 16:13:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v18GDl69002263; Wed, 8 Feb 2017 11:13:47 -0500 From: Tom Lane To: Ganesh Kannan cc: "pgsql-admin@postgresql.org" Subject: Re: Recovery from Transaction wraparound failure In-reply-to: References: Comments: In-reply-to Ganesh Kannan message dated "Wed, 08 Feb 2017 06:48:10 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2261.1486570427.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 08 Feb 2017 11:13:47 -0500 Message-ID: <2262.1486570427@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Ganesh Kannan writes: > 1) After reading the documentation, I thought I could try to vacuum > those 20 tables that were never vacuumed individually ( with relfrozenid > more than 2 billion) in single-user mode, but it is not working (error > copied below). That is not an error, it's just a warning: > backend> vacuum freeze schema.wd_p51_y2015; > 2017-02-07 23:25:15 EST [54045]: [8-1] user=3D,db=3D,app=3D,client=3D WAR= NING: database "db1" must be vacuumed within 999999 transactions > 2017-02-07 23:25:15 EST [54045]: [9-1] user=3D,db=3D,app=3D,client=3D HIN= T: To avoid a database shutdown, execute a database-wide VACUUM in that da= tabase. It's telling you that you haven't finished fixing the problem, not that this command didn't do anything. > Is there a way to do vacuum of individual tables in > single-user mode? You're doing it. I don't think you really need the "freeze" modifier though, and that may be forcing more I/O than is needed to get out of trouble. regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin