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

From Rui DeSousa
Subject Re: VACUUM FREEZE vs plain VACUUM
Date
Msg-id 13815633-5376-4DED-9043-E14C88B1B71E@icloud.com
Whole thread Raw
In response to VACUUM FREEZE vs plain VACUUM  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-admin


On Jul 17, 2025, at 6:03 PM, Ron Johnson <ronljohnsonjr@gmail.com> wrote:


Does VACUUM FREEZE do something extra or special than to defer autovacuum for an extra 50,000,000 transactions?


Yes.  Vacuum freeze removes the xmin on tuples that no longer need it.  i.e. The xmin is not required by any other in-flight transaction. 

I don’t know what you mean by defer auto vacuum.  Vacuum freeze is a mechanism to recycle transaction ids; not to initiate an auto vacuum. 

It sounds like you have autovacuum_freeze_max_age set too low for your environment.

i.e. Here is what I currently use:

autovacuum_freeze_max_age=800000000

 

pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: VACUUM FREEZE vs plain VACUUM
Next
From: "David G. Johnston"
Date:
Subject: Re: VACUUM FREEZE vs plain VACUUM