Re: fillfactor hides autovacuum parameters in 8.4.0 - Mailing list pgsql-bugs

From Itagaki Takahiro
Subject Re: fillfactor hides autovacuum parameters in 8.4.0
Date
Msg-id 20090820121234.999B.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: fillfactor hides autovacuum parameters in 8.4.0  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: fillfactor hides autovacuum parameters in 8.4.0  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-bugs
Alvaro Herrera <alvherre@commandprompt.com> wrote:

> > We should remember whether a field was specified or not independntly.
> I'm not sure what you are suggesting ...?

Please imagine that:

=# SET autovacuum_vacuum_scale_factor = 0.05;
=# ALTER TABLE tbl SET (autovacuum_vacuum_threshold = 10);

AutoVacOpts.vacuum_threshold should be 10 (comes from reloptions),
but AutoVacOpts.vacuum_scale_factor should be <DEFAULT> (comes from GUC).

If we use boolean flags, we need booleans for each fields in AutoVacOpts.
(vacuum_threshold_is_default, vacuum_scale_factor_is_default, ...)

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: fillfactor hides autovacuum parameters in 8.4.0
Next
From: Alvaro Herrera
Date:
Subject: Re: fillfactor hides autovacuum parameters in 8.4.0