From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Recommendation to run vacuum FULL in parallel
Date: Wed, 3 Apr 2019 01:22:02 -0500
Message-ID: <caf7f86a-3a31-32d9-0902-d452090748b3@gmail.com> (raw)
In-Reply-To: <CALvqh4q3SnBAh+eFCmGVgcH7KH0eCeA2ttf4wU3OUwEWPFggyg@mail.gmail.com>
References: <CALvqh4q3SnBAh+eFCmGVgcH7KH0eCeA2ttf4wU3OUwEWPFggyg@mail.gmail.com>
On 4/3/19 12:50 AM, Perumal Raj wrote:
> Hi ALL
>
> We are planning to reclaim unused space from 9.2 Version postgres Cluster,
>
> Method : VACUUM FULL
Does *every* table have *so much* free space that it's impractical to just
let the files just get refilled by normal usage?
> DB Size : 500 GB
> Expected space to reclaim 150 GB
> work_mem : 250 MB
> maintenance_work_mem : 20 GB
>
> *Question :*
>
> 1. vacuumdb --j option (Parallel) not available for version 9.2.
> How to run vacuum full in parallel ? At present its taking 8Hrs if i run
> sequential ( vacuum full verbose;)
>
> 2. If we run vacuum full, Do we need to run REINDEX/ANALYZE exclusively ?
>
> 3. What is the best way to run VACUUM FULL with less window.
A good way to run *any* task like this in parallel is to generate X lists of
objects, and then process each list in parallel.
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Recommendation to run vacuum FULL in parallel
In-Reply-To: <caf7f86a-3a31-32d9-0902-d452090748b3@gmail.com>
References: <CALvqh4q3SnBAh+eFCmGVgcH7KH0eCeA2ttf4wU3OUwEWPFggyg@mail.gmail.com> <caf7f86a-3a31-32d9-0902-d452090748b3@gmail.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