Re: Recommendation to run vacuum FULL in parallel

From: rihad <rihad(at)mail(dot)ru>
To: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Recommendation to run vacuum FULL in parallel
Date: 2019-04-03 09:12:56
Message-ID: 9ed59ae2-6eb1-549d-eb05-d1546fd11515@mail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Does *every* table have *so much* free space that it's impractical to
> just
> let the files just get refilled by normal usage?
>
Ideally VACUUM FULL should not require a giant lock on the table.

Sometimes a table's usage pattern involves much more updates than
inserts, which gradually uses more and more unused space that is never
used again by postgres, and plain autovacuuming doesn't return it to the
OS. So DB size (as witnessed by psql's \l+) uses 5-6x times the space it
actually needs. And using vacuum full is prohibitive because of the
exclusive lock it takes on the table, preventing both writes and reads.
Since rewriting a table is a completely internal operation from clients'
POV, hopefully one day we will see a concurrent version of vacuum full.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2019-04-03 11:30:48 Re: Recommendation to run vacuum FULL in parallel
Previous Message preejackie 2019-04-03 07:21:46 Re: New LLVM JIT Features