From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | rihad <rihad(at)mail(dot)ru> |
Cc: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: When do vacuumed pages/tuples become available for reuse? |
Date: | 2019-04-11 16:50:33 |
Message-ID: | 20190411165033.GA19432@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Lewis | 2019-04-11 17:13:17 | Re: When do vacuumed pages/tuples become available for reuse? |
Previous Message | Michael Lewis | 2019-04-11 16:40:38 | Re: When do vacuumed pages/tuples become available for reuse? |