Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4xRi-0006xU-0I for pgsql-admin@arkaria.postgresql.org; Mon, 23 May 2016 21:31:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b4xRh-0004Hq-EV for pgsql-admin@arkaria.postgresql.org; Mon, 23 May 2016 21:31:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4xQ0-0002LH-W7 for pgsql-admin@postgresql.org; Mon, 23 May 2016 21:29:45 +0000 Received: from internet06.ebureau.com ([65.127.24.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4xPy-000253-HG for pgsql-admin@postgresql.org; Mon, 23 May 2016 21:29:43 +0000 Received: from localhost (localhost [127.0.0.1]) by internet06.ebureau.com (Postfix) with ESMTP id 319F95819037 for ; Mon, 23 May 2016 16:29:41 -0500 (CDT) X-Virus-Scanned: amavisd-new at ebureau.com Received: from internet06.ebureau.com ([127.0.0.1]) by localhost (internet06.ebureau.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id elIOpnY_VCVV for ; Mon, 23 May 2016 16:29:40 -0500 (CDT) Received: from [10.10.20.249] (unknown [10.10.20.249]) by internet06.ebureau.com (Postfix) with ESMTPSA id A883A581902B for ; Mon, 23 May 2016 16:29:40 -0500 (CDT) From: Natalie Wenz Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Canceling a vacuum freeze Message-Id: <365F785B-D974-4210-9F00-51520BE08C07@ebureau.com> Date: Mon, 23 May 2016 16:29:39 -0500 To: pgsql-admin Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -3.3 (---) 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 Question: When you cancel a vacuum freeze (or auto vacuum that is running because the= table's max xid exceeded autovacuum_max_freeze_age) that's running on a la= rge table, how much work is potentially lost?=20 I ask because I have a vacuum freeze running in single-user mode on a datab= ase that is 46 TB, 35 TB of which is one table. I recently migrated it to 9= .5.2 (on a new host), but because so much of the data is in one ridiculous = table, I dumped the old database, excluding that big table, with pg_dump, r= estored everything else using pg_restore, and then used copy statements to = dump and then load the data from the big table in chunks, so I could dump a= nd reload that table with some parallelism. I got everything migrated, and = started logging live data to it. Everything went well until a few weeks lat= er, when the auto vacuum wasn't able to keep up with our transaction load. = The database shut itself down and I got it running in single-user mode and = started a vacuum freeze. After a while we realized (you probably know where= this is going) that the vacuum has to freeze allllllll of the rows in the = 35 TB table. I'm wondering if it would be worth it to shut it down again an= d retune for a more aggressive vacuum. I'm under the impression that some w= ork would probably be lost, but is there a limit to how much?=20 My follow up question would be what would this most aggressive vacuum tunin= g look like.=20 Many thanks, Natalie --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin