From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Recommendation to run vacuum FULL in parallel
Date: Fri, 5 Apr 2019 21:56:49 +0200
Message-ID: <20190405195649.gfittdsedz3bszsu@hjp.at> (raw)
In-Reply-To: <a04bde8b-867f-1daf-08c7-dd9bb6263cb3@mail.ru>
References: <9ed59ae2-6eb1-549d-eb05-d1546fd11515@mail.ru>
<CAHOFxGqzLdRc+0dNp9q6q2oBCYUiQCmzYm8ma3Cng5m1+1tnZQ@mail.gmail.com>
<a04bde8b-867f-1daf-08c7-dd9bb6263cb3@mail.ru>
On 2019-04-03 19:42:03 +0400, rihad wrote:
> > And future updates can reuse it, too (an update is very similar to an
> > insert+delete).
>
> Hm, then it's strange our DB takes 6 times as much space compared to freshly
> restored one (only public schema is considered).
This is indeed strange if you accumulated that much bloat gradually (as
you wrote). It is much less strange if you did some massive
reorganisations in the past (In one case I witnessed, changes had to be
made to almost every value in 4 or 5 columns of a large table. So the
person doing the updates first issued an update on the first column,
checked that the result looked plausible, then issued an update on the
second column, and so on. The result was of course massive bloat).
hp
--
_ | Peter J. Holzer | we build much bigger, better disasters now
|_|_) | | because we have much more sophisticated
| | | hjp@hjp.at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/;
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: hjp-pgsql@hjp.at
Subject: Re: Recommendation to run vacuum FULL in parallel
In-Reply-To: <20190405195649.gfittdsedz3bszsu@hjp.at>
References: <9ed59ae2-6eb1-549d-eb05-d1546fd11515@mail.ru> <CAHOFxGqzLdRc+0dNp9q6q2oBCYUiQCmzYm8ma3Cng5m1+1tnZQ@mail.gmail.com> <a04bde8b-867f-1daf-08c7-dd9bb6263cb3@mail.ru> <20190405195649.gfittdsedz3bszsu@hjp.at>
* 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