Skip site navigation (1) Skip section navigation (2)

Re: Problem with pg_upgrade?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem with pg_upgrade?
Date: 2011-03-30 20:58:33
Message-ID: 1301518713.15860.4.camel@jdavis-ux.asterdata.local (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Wed, 2011-03-30 at 16:46 -0400, Robert Haas wrote:
> 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?

Because autovacuum may run before those things are properly set, as
Bruce said in the original email:

"I am concerned that somehow autovaccum is running
in frozen mode before I have restored the frozen xids for the table or

I think some kind of hidden GUC might be the best option. I tend to
agree that a third option to the "autovacuum" setting would be

	Jeff Davis

In response to

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2011-03-30 21:25:39
Subject: Re: Problem with pg_upgrade?
Previous:From: Robert HaasDate: 2011-03-30 20:48:26
Subject: Re: deadlock_timeout at < PGC_SIGHUP?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group