pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: curious vacuum full behavior
Date: Thu, 4 Feb 2021 10:03:53 +0000
Message-ID: <d9e34b260bfe45b280005f6cdc2814f7@zuerich.ch> (raw)

I have 2 identical systems A + B.
B being a clone of A.


The table pg_catalog.pg_largeobject was identical on both systems: 300GB in total size; 100GB bloated.


I did following on A:

?  vacuum full pg_catalog.pg_largeobject;
(using the default maintenance_work_mem of 64MB)
It took around 45 minutes and increased the diskspace by around 125% until the vacuum had been finished.


I did following on B:

?  set maintenance_work_mem = '256MB';

?  vacuum full pg_catalog.pg_largeobject;
This took around 5 minutes. I don't know if the diskspace ever increased.


I was really surprised.
Is there any explanation on this behavior?
Is vacuum full heavily using on-disk sort areas if maintenance_work_mem is too low?


Postgres Version 9.6


Thanks, Markus

view thread (2+ messages)  latest in thread

Message-ID: <d9e34b260bfe45b280005f6cdc2814f7@zuerich.ch>
Permalink:  ../d9e34b260bfe45b280005f6cdc2814f7@zuerich.ch/
Also on:    postgresql.org/message-id/d9e34b260bfe45b280005f6cdc2814f7@zuerich.ch

 · 

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: Markus.Zwettler@zuerich.ch
  Subject: Re: curious vacuum full behavior
  In-Reply-To: <d9e34b260bfe45b280005f6cdc2814f7@zuerich.ch>
  References: <d9e34b260bfe45b280005f6cdc2814f7@zuerich.ch>

* 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