pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Marc Lessard <Jean-Marc.Lessard@ultra-ft.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Does the work made by vaccum in the current pass is lost when interrupted?
Date: Thu, 8 Oct 2020 14:57:34 +0000
Message-ID: <QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM> (raw)

I have a large table (billions of records) which has not been vacuum and bloated.
Vacuum scale factor was left at the default.

I ran a vacuum on a DEV system and it makes several passes (scanning heap/vacuuming indexes/vacumming heap) which take more than an hour each.
On a PROD system, I may have to kill the job midway.
Should I reduce the autovacuum_work_mem of my session? Currently 1GB
Does the work made in the current pass is lost when interrupted?
Correct me if I am not right, but vacuumed indexes and heap made by the current pass will go to disk, but the heap should be rescan on the next vacuum.
I guess that the visibility map is updated only at the end of each pass.

My best regards

Thank you


Jean-Marc Lessard
Administrateur de base de données / Database Administrator

[cid:image001.jpg@01D69D5F.64DB0EA0]

Ultra Electronics Forensic Technology Inc.
T +1 514 489 4247 x4164
www.ultra-forensictechnology.com<http://www.ultra-forensictechnology.com/;

Attachments:

image001.jpg (image/jpeg, 1.9K) download view image

view thread (4+ messages)  latest in thread

Message-ID: <QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM>
Permalink:  ../QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Jean-Marc.Lessard@ultra-ft.com
  Subject: Re: Does the work made by vaccum in the current pass is lost when interrupted?
  In-Reply-To: <QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM>
  References: <QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox