pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Jerry Sievers <gsievers19@comcast.net>
Cc: pgsql-general@postgresql.org
Subject: Re: PgUpgrade bumped my XIDs by ~50M?
Date: Thu, 5 Apr 2018 16:39:11 -0400
Message-ID: <20180405203911.GA22360@momjian.us> (raw)
In-Reply-To: <20180405002906.GE19574@momjian.us>
References: <87sh8a7gh1.fsf@jsievers.enova.com>
	<20180404232827.GD19574@momjian.us>
	<87k1tm7bnz.fsf@jsievers.enova.com>
	<20180405002906.GE19574@momjian.us>

On Wed, Apr  4, 2018 at 08:29:06PM -0400, Bruce Momjian wrote:
> On Wed, Apr  4, 2018 at 07:13:36PM -0500, Jerry Sievers wrote:
> > Bruce Momjian <bruce@momjian.us> writes:
> > > Is it possible that pg_upgrade used 50M xids while upgrading?
> > 
> > Hi Bruce.
> > 
> > Don't think so, as I did just snap the safety snap and ran another
> > upgrade on that.
> > 
> > And I also compared txid_current for the upgraded snap and our running
> > production instance.
> > 
> > The freshly upgraded snap is ~50M txids behind the prod instance.
> 
> Are the objects 50M behind or is txid_current 50M different?  Higher or
> lower?

Uh, here is a report of a similar problem from March 6, 2018:

	https://www.postgresql.org/message-id/flat/C44C73BC-6B3A-42E0-9E44-6CE4E5B5D601%40ebureau.com#C44C73...

	I upgraded a very large database from 9.6 to 10.1 via pg_upgrade
	recently, and ever since, the auto vacuum has been busy on a large
	legacy table that has experienced no changes since the upgrade. If the
	whole table had been frozen prior to the upgrade, would you expect it to
	stay frozen? 

It sure smells like we have a bug here.  Could this be statistics
collection instead?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




view thread (8+ messages)  latest in thread

Message-ID: <20180405203911.GA22360@momjian.us>
Permalink:  ../20180405203911.GA22360@momjian.us/
Also on:    postgresql.org/message-id/20180405203911.GA22360@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bruce@momjian.us, gsievers19@comcast.net
  Subject: Re: PgUpgrade bumped my XIDs by ~50M?
  In-Reply-To: <20180405203911.GA22360@momjian.us>
  References: <87sh8a7gh1.fsf@jsievers.enova.com> <20180404232827.GD19574@momjian.us> <87k1tm7bnz.fsf@jsievers.enova.com> <20180405002906.GE19574@momjian.us> <20180405203911.GA22360@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox