Re: how much disk space does a VACUUM FULL take? - Mailing list pgsql-general

From Vick Khera
Subject Re: how much disk space does a VACUUM FULL take?
Date
Msg-id CALd+dcck=wsKEF+GyZBPdHZ3M+jrEOisPfBUnyHhcY1wYXOHHg@mail.gmail.com
Whole thread Raw
In response to how much disk space does a VACUUM FULL take?  (john gale <john@smadness.com>)
List pgsql-general

On Tue, Dec 3, 2013 at 4:04 PM, john gale <john@smadness.com> wrote:
Does this suggest that VACUUM FULL needs free disk space on the order of the full size of the table that it's vacuuming to be able to complete?  Or does it / can it write the filesystem files in the 1GB chunks stored in /base while removing the new "unused" files at the same time, thus requiring only a few GB of free space?

There are at least two tools out there that compact your table "live" by arranging it such that the trailing pages of your table are empty (by issuing trivial updates), and letting the standard vacuum truncate the file.

pgsql-general by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: unexplainable psql exit status 1
Next
From: Kevin Grittner
Date:
Subject: Re: Postgres 9.3 read block error went into recovery mode