Re: new GUC var: autovacuum_process_all_tables - Mailing list pgsql-hackers

From Robert Haas
Subject Re: new GUC var: autovacuum_process_all_tables
Date
Msg-id 603c8f070902051727x455f3723y1ea3966c500f481e@mail.gmail.com
Whole thread Raw
In response to Re: new GUC var: autovacuum_process_all_tables  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Feb 5, 2009 at 7:13 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> Thinking about this a little more, the biggest problem I have with
> this feature is that it makes autovacuum_enabled mean two different
> things depending on context.  But maybe we should change the name of
> the reloption to "autovacuum" and have three values for it:
> default|enabled|disabled.
>
> Then we could add a GUC called autovacuum_by_default = on|off, and we
> could later insert per-schema or per-database or per-table-group
> defaults without introducing any backwards-incompatibility (default
> would still mean default, though the default might come from a
> different source).

In fact (he said to himself), we could take this a step further and
call both the reloption and GUC "autovacuum_policy".  Then we could
have two policies for this release ("always" and "never") plus allow
"default" for the reloption.  Then future releases could allow users
to define additional policies, like "off-hours".

Just thinking out loud here folks...

...Robert


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: new GUC var: autovacuum_process_all_tables
Next
From: Euler Taveira de Oliveira
Date:
Subject: Re: autovacuum and reloptions