Re: Postgres auto vacuum - Disable - Mailing list pgsql-hackers

From Dave Page
Subject Re: Postgres auto vacuum - Disable
Date
Msg-id CA+OCxoyRy2w9WFq=1390_igmkw+JeFSFkPi9GqFJe31guarg5Q@mail.gmail.com
Whole thread Raw
In response to Postgres auto vacuum - Disable  ("Karthik Jagadish (kjagadis)" <kjagadis@cisco.com>)
Responses Re: Postgres auto vacuum - Disable
List pgsql-hackers
Hi

On Mon, 7 Nov 2022 at 11:42, Karthik Jagadish (kjagadis) <kjagadis@cisco.com> wrote:

Hi,

 

We have a NMS application in cisco and using postgres as a database.

 

We have query related to disabling auto vacuum. We have below configuration in postgres.conf where the autovacuum=on is commented out.

 

Shape

Description automatically generated

 

But when checked in database we notice that it’s showing as on

 

Graphical user interface, timeline

Description automatically generated

 

What would this mean? Does it mean that autovacuum is not disabled? Appreciate a response.


Right. The default is for it to be enabled, so commenting out the option does nothing. You would need to set it explicitly to off.

BUT... you almost certainly don't want to do that. Cases where it should be disabled are *extremely* rare. Make sure you *really* know what you're letting yourself in for by disabling autovacuum, and don't rely on 10+ year old performance tuning advice from random places on the internet, if that's what you're doing. 

--
Attachment

pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Perform streaming logical transactions by background workers and parallel apply
Next
From: "Karthik Jagadish (kjagadis)"
Date:
Subject: Re: Postgres auto vacuum - Disable