From: rihad <rihad@mail.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: When do vacuumed pages/tuples become available for reuse?
Date: Thu, 11 Apr 2019 18:27:52 +0400
Message-ID: <17dafb0f-5ab9-390e-96b0-2280d654f790@mail.ru> (raw)
In-Reply-To: <9914.1554992415@sss.pgh.pa.us>
References: <9cd73fcb-511d-ede9-6789-209b7d4eb193@mail.ru>
<8560.1554990486@sss.pgh.pa.us>
<0522481c-4cf6-1928-8780-9bfa2d7c6aca@mail.ru>
<9914.1554992415@sss.pgh.pa.us>
On 04/11/2019 06:20 PM, Tom Lane wrote:
> rihad <rihad@mail.ru> writes:
>> Thanks! Our autovacuum_work_mem = 1GB, so this probably means any space
>> would be available for reuse only at the end of the vacuum?
> It's six bytes per dead tuple, last I checked ... you do the math.
>
>> Are there
>> any downsides in decreasing it to, say, 64MB? I see only pluses )
> Well, usually people prefer to minimize the number of passes over
> the indexes.
>
> regards, tom lane
> .
>
Yup, it's just that n_dead_tuples grows by several hundred thousand (the
table sees much much more updates than inserts) and disk usage grows
constantly between several hour long vacuum runs. Running vacuum full
isn't an option.
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: rihad@mail.ru, tgl@sss.pgh.pa.us
Subject: Re: When do vacuumed pages/tuples become available for reuse?
In-Reply-To: <17dafb0f-5ab9-390e-96b0-2280d654f790@mail.ru>
References: <9cd73fcb-511d-ede9-6789-209b7d4eb193@mail.ru> <8560.1554990486@sss.pgh.pa.us> <0522481c-4cf6-1928-8780-9bfa2d7c6aca@mail.ru> <9914.1554992415@sss.pgh.pa.us> <17dafb0f-5ab9-390e-96b0-2280d654f790@mail.ru>
* 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