Re: Visibility map and freezing

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Subject: Re: Visibility map and freezing
Date: 2009-01-09 11:49:57
Message-ID: 496739E5.8050908@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeff Davis wrote:
> On Wed, 2009-01-07 at 09:34 +0200, Heikki Linnakangas wrote:
>> autovacuum_freeze_max_age -> autovacuum_freeze_scan_age
>> vacuum_freeze_max_age -> vacuum_freeze_scan_age
>> vacuum_freeze_min_age -> vacuum_freeze_tuple_age
>>
>> *_scan_age settings control when the table is fully scanned to freeze
>> tuples and advance relfrozenxid, and vacuum_freeze_tuple_age controls
>> how old a tuple needs to be to be frozen. One objection is that you can
>> read "freeze_scan" to mean that a scan is frozen, like a tuple is
>> frozen. Any better ideas?
>
> I see what you mean about the possible misinterpretation, but I think
> it's a big improvement, and I don't have a better suggestion.

Thinking about this some more, I'm not too happy with those names
either. vacuum_freeze_scan_age and autovacuum_freeze_scan_age don't mean
quite the same thing, like vacuum_cost_delay and
autovacuum_vacuum_cost_delay do, for example.

I'm now leaning towards:

autovacuum_freeze_max_age
vacuum_freeze_table_age
vacuum_freeze_min_age

where autovacuum_freeze_max_age and vacuum_freeze_min_age are unchanged,
and vacuum_freeze_table_age is the new setting that controls when VACUUM
or autovacuum should perform a full scan of the table to advance
relfrozenxid.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bernd Helmle 2009-01-09 12:20:57 Re: WIP: Automatic view update rules
Previous Message Heikki Linnakangas 2009-01-09 11:23:35 Re: Hot standby, slot ids and stuff