Re: VACUUM FREEZE vs plain VACUUM

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: VACUUM FREEZE vs plain VACUUM
Date: 2025-07-18 06:16:21
Message-ID: f458589b1f446b5977272a55300601746f4480d5.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 2025-07-18 at 06:31 +0200, Laurenz Albe wrote:
> On Thu, 2025-07-17 at 18:03 -0400, Ron Johnson wrote:
> > Does VACUUM FREEZE do something extra or special than to defer autovacuum
> > for an extra 50,000,000 transactions?
>
> To answer your question: the extra thing it does is that it even visits
> table pages that have the all-visible flag set, that is, they contain no
> dead tuples. That means that it will do more work and use more
> of your system's resources.

... and the biggest impact is that it will modify more tuples, some of them
unnecessarily (because they will be deleted or updated before they reach
an age of 50 million transactions), and that will cause more writing
disk I/O on your system.

Yours,
Laurenz Albe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Luca Ferrari 2025-07-23 10:41:48 Re: pg_combinebackup failure
Previous Message Laurenz Albe 2025-07-18 04:31:18 Re: VACUUM FREEZE vs plain VACUUM