Re: Problem with pg_upgrade? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Problem with pg_upgrade?
Date
Msg-id AANLkTinkMuSyeR-psML9ofAoXphnd0Dbwu8JdDmvgpsn@mail.gmail.com
Whole thread Raw
In response to Re: Problem with pg_upgrade?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Problem with pg_upgrade?
Re: Problem with pg_upgrade?
List pgsql-hackers
On Wed, Mar 30, 2011 at 10:57 AM, Bruce Momjian <bruce@momjian.us> wrote:
> I think we have three options:
>
>        o  find if the use of autovacuum_freeze_max_age is safe, or make
>           it safe
>        o  document that autovacuum_naptime always happens before
>           autovacuum does anything and set it high
>        o  modify autovacuum to be an enum, with values on/off/disabled
>
> I think the last one makes more sense, and is safer if we need to
> backpatch this.  Creating a new variable for this would be confusing
> because it could conflict with the 'autovacuum' setting.

I have to admit the prospect of abuse is slightly frightening to me
here.  I guess we can't be held responsible for users who do dumb
things, but it might not be too clear to someone what the difference
is between autovacuum=off and autovacuum=disabled.  I don't really
understand why this is an issue in the first place, though.  Surely we
must be setting the XID counter on the new cluster to match the one on
the old cluster, and migrating the relfrozenxid and datfrozenxid
settings, so why does it matter if someone runs vacuum freeze?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: deadlock_timeout at < PGC_SIGHUP?
Next
From: Jeff Davis
Date:
Subject: Re: Problem with pg_upgrade?