From: Michael Paquier <michael@paquier.xyz>
To: Michael Lewis <mlewis@entrata.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: rihad <rihad@mail.ru>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: 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: Fri, 12 Apr 2019 13:07:27 +0900
Message-ID: <20190412040727.GH2144@paquier.xyz> (raw)
In-Reply-To: <CAHOFxGq5oNrJPGbGfAFC3iKkOLk=06_CeAMTyfE_ywj8BA=yaA@mail.gmail.com>
References: <44a10837-648b-7cc9-d42a-146bc0c83574@mail.ru>
<20190411165033.GA19432@alvherre.pgsql>
<CAHOFxGq5oNrJPGbGfAFC3iKkOLk=06_CeAMTyfE_ywj8BA=yaA@mail.gmail.com>
On Thu, Apr 11, 2019 at 11:13:17AM -0600, Michael Lewis wrote:
> Wouldn't "dead but not yet removable" be high if there were long running
> transactions holding onto old row versions?
You got it right. You need to look at the number behind the tuples
dead, but not removable which is usually a pattern caused by long
running transactions holding snapshot references which prevents
autovacuum and/or vacuum to do their homework.
--
Michael
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: michael@paquier.xyz, mlewis@entrata.com, alvherre@2ndquadrant.com, rihad@mail.ru, jeff.janes@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: When do vacuumed pages/tuples become available for reuse?
In-Reply-To: <20190412040727.GH2144@paquier.xyz>
References: <44a10837-648b-7cc9-d42a-146bc0c83574@mail.ru> <20190411165033.GA19432@alvherre.pgsql> <CAHOFxGq5oNrJPGbGfAFC3iKkOLk=06_CeAMTyfE_ywj8BA=yaA@mail.gmail.com> <20190412040727.GH2144@paquier.xyz>
* 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