Re: When do vacuumed pages/tuples become available for reuse? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: When do vacuumed pages/tuples become available for reuse?
Date
Msg-id 20190411165033.GA19432@alvherre.pgsql
Whole thread Raw
In response to Re: When do vacuumed pages/tuples become available for reuse?  (rihad <rihad@mail.ru>)
Responses Re: When do vacuumed pages/tuples become available for reuse?
Re: When do vacuumed pages/tuples become available for reuse?
List pgsql-general
On 2019-Apr-11, rihad wrote:

> 2019-04-11 19:39:44.450844500   tuples: 19150 removed, 2725811 remain, 465 are dead but not yet removable

What Jeff said.  This vacuum spent a lot of time, only to remove miserly
19k tuples, but 2.7M dead tuples remained ... probably because you have
long-running transactions preventing vacuum from removing them.  Maybe
that was pg_dump.

I suspect what you really need is keep an eye on the age of your oldest
transactions.  Don't leave anything "idle in transaction".

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-general by date:

Previous
From: Michael Lewis
Date:
Subject: Re: When do vacuumed pages/tuples become available for reuse?
Next
From: Michael Lewis
Date:
Subject: Re: When do vacuumed pages/tuples become available for reuse?