Re: VACUUM FREEZE vs plain VACUUM - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: VACUUM FREEZE vs plain VACUUM
Date
Msg-id f458589b1f446b5977272a55300601746f4480d5.camel@cybertec.at
Whole thread Raw
In response to Re: VACUUM FREEZE vs plain VACUUM  (Laurenz Albe <laurenz.albe@cybertec.at>)
List 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



pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: VACUUM FREEZE vs plain VACUUM
Next
From: Luca Ferrari
Date:
Subject: Re: pg_combinebackup failure