Re: Disable autovacuum guc?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Disable autovacuum guc?
Date: 2016-10-20 13:34:42
Message-ID: 76871e2a-1524-caf3-562a-45823b8949eb@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/19/2016 07:22 PM, Josh Berkus wrote:
> On 10/19/2016 06:27 PM, Joshua D. Drake wrote:
>> Hello,
>>
>> After all these years, we are still regularly running into people who
>> say, "performance was bad so we disabled autovacuum". I am not talking
>> about once in a while, it is often. I would like us to consider removing
>> the autovacuum option. Here are a few reasons:
>>
>> 1. It does not hurt anyone
>> 2. It removes a foot gun
>> 3. Autovacuum is *not* optional, we shouldn't let it be
>> 4. People could still disable it at the table level for those tables
>> that do fall into the small window of, no maintenance is o.k.
>> 5. People would still have the ability to decrease the max_workers to 1
>> (although I could argue about that too).
>
> People who run data warehouses where all of the data comes in as batch
> loads regularly disable autovacuum, and should do so. For the DW/batch
> load use-case, it makes far more sense to do batch loads interspersed
> with ANALYZEs and VACUUMS of loaded/updated tables.

Hrm, true although that is by far a minority of our users. What if we
made it so we disabled the autovacuum guc but made it so you could
disable autovacuum per database (ALTER DATABASE SET or something such
thing?).

Sincerely,

JD

--
Command Prompt, Inc. http://the.postgres.company/
+1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2016-10-20 13:35:22 Re: PATCH: two slab-like memory allocators
Previous Message Stephen Frost 2016-10-20 12:50:04 Re: File content logging during execution of COPY queries (was: Better logging of COPY queries if log_statement='all')