From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Michael Lewis <mlewis@entrata.com>
Cc: Christophe Escobar <christophe.esco@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Autovacuum lock conflict
Date: Tue, 24 Sep 2019 07:06:42 +0200
Message-ID: <e86ea41fd721105ded8b5cd02601ead43750afe0.camel@cybertec.at> (raw)
In-Reply-To: <CAHOFxGr_L9r2j41TCc9vPtZ4YQ8n2C-udthnCJDS2qRMHivG5A@mail.gmail.com>
References: <CAN3Cu8Uzky=m3qD6ziNYOvMJUL7sba+4CFHX+n61ME+netFd5w@mail.gmail.com>
<5e0018a7e73aad15d08006b6ac158742e1561294.camel@cybertec.at>
<CAHOFxGr_L9r2j41TCc9vPtZ4YQ8n2C-udthnCJDS2qRMHivG5A@mail.gmail.com>
On Mon, 2019-09-23 at 13:53 -0600, Michael Lewis wrote:
> > - For tables that receive only INSERTs, schedule a regular VACUUM
> > with "cron" or similar. Unfortunately, PostgreSQL isn't very
> > smart
> > about vacuuming insert-only tables.
>
>
> What is the need to vacuum on an insert only table? Does that just
> maintain the freespace map?
No, the idea is to get rows frozen *before* autovacuum launches
an anti-wraparound vacuum.
You could launch VACUUM (FREEZE) for best effect.
This way you can schedule the operation so that it doesn't
interfere with your other activities.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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: laurenz.albe@cybertec.at, mlewis@entrata.com, christophe.esco@gmail.com
Subject: Re: Autovacuum lock conflict
In-Reply-To: <e86ea41fd721105ded8b5cd02601ead43750afe0.camel@cybertec.at>
References: <CAN3Cu8Uzky=m3qD6ziNYOvMJUL7sba+4CFHX+n61ME+netFd5w@mail.gmail.com> <5e0018a7e73aad15d08006b6ac158742e1561294.camel@cybertec.at> <CAHOFxGr_L9r2j41TCc9vPtZ4YQ8n2C-udthnCJDS2qRMHivG5A@mail.gmail.com> <e86ea41fd721105ded8b5cd02601ead43750afe0.camel@cybertec.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