Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4BfB-0002WA-SI for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 20:39:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f4BfA-0004Ib-Nh for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 20:39:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4BfA-0004IR-FX for pgsql-general@lists.postgresql.org; Thu, 05 Apr 2018 20:39:16 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f4Bf6-0000A3-UI for pgsql-general@postgresql.org; Thu, 05 Apr 2018 20:39:15 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1f4Bf5-00060Z-9F; Thu, 05 Apr 2018 16:39:11 -0400 Date: Thu, 5 Apr 2018 16:39:11 -0400 From: Bruce Momjian To: Jerry Sievers Cc: pgsql-general@postgresql.org Subject: Re: PgUpgrade bumped my XIDs by ~50M? Message-ID: <20180405203911.GA22360@momjian.us> References: <87sh8a7gh1.fsf@jsievers.enova.com> <20180404232827.GD19574@momjian.us> <87k1tm7bnz.fsf@jsievers.enova.com> <20180405002906.GE19574@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405002906.GE19574@momjian.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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#C44C73BC-6B3A-42E0-9E44-6CE4E5B5D601@ebureau.com 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 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 +