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 1f4C1r-00047H-Un for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 21:02:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f4C1q-00078o-P0 for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 21:02:42 +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 1f4C1q-00078e-3G for pgsql-general@lists.postgresql.org; Thu, 05 Apr 2018 21:02:42 +0000 Received: from resqmta-ch2-10v.sys.comcast.net ([2001:558:fe21:29:69:252:207:42]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4C1l-0000mC-At for pgsql-general@postgresql.org; Thu, 05 Apr 2018 21:02:41 +0000 Received: from resomta-ch2-20v.sys.comcast.net ([69.252.207.116]) by resqmta-ch2-10v.sys.comcast.net with ESMTP id 4C1CfNqFf38ig4C1efdT3K; Thu, 05 Apr 2018 21:02:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1522962150; bh=CNbVv/V0A8DQtK9WCkY7jbvmf9y+MG0e8gZF5YBghwo=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=JRSRuvfGJThJ6r2wPwongqxLKE8VWLnBhLgcFgM7oO6dRvX0bwDTh93faczACIjaN XYk0/2Tr7kNpdDd0RVWYrzsYubDtciXMcfGvpd5Ylcq4nR+sN9q9WOKTU8GvVuApqX o+JC8OhVSAdA9iJfcTzw+CCCA5AYxk7B9CYESZPx/j4Cn2TGZIP4b/NmZq8lHSkD+C d40UpLnpE4uIBR8rg/8Qji04eRJL0AKQg37KW5MKmqs6rqMfYfvYWldHjLhD8OP29X mJUb4qwrgkWtRY8wLAYnUhEmqA+6aMoF+aHnVSmJrXjlu3wSbxNH0w/cWSVGDUblws yGj0l6SzwhU9w== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-ch2-20v.sys.comcast.net with SMTP id 4C1Rf3ozX1idi4C1TfebcC; Thu, 05 Apr 2018 21:02:28 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id B6F8D260056; Thu, 5 Apr 2018 16:02:16 -0500 (CDT) From: Jerry Sievers To: Bruce Momjian Cc: Jerry Sievers , pgsql-general@postgresql.org Subject: Re: PgUpgrade bumped my XIDs by ~50M? References: <87sh8a7gh1.fsf@jsievers.enova.com> <20180404232827.GD19574@momjian.us> <87k1tm7bnz.fsf@jsievers.enova.com> <20180405002906.GE19574@momjian.us> <20180405203911.GA22360@momjian.us> Date: Thu, 05 Apr 2018 16:02:16 -0500 In-Reply-To: <20180405203911.GA22360@momjian.us> (Bruce Momjian's message of "Thu, 5 Apr 2018 16:39:11 -0400") Message-ID: <87k1tlpdt3.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfHOS1aViSqGVOp1dk1Rf2YLwOCh5kEkejOaHI+vQxP6PaLD75WdJtTuJa8FTkKCsSwrdDbjVTynLbaMoOHWO4zMUhMBS20iTyKtqzloQc3hIDEhL3xED DdBsz766Nt1789xvo/xo7pECzHxxPKL7HE3K6jkpS9/5xWsepvJyB8mcLP/YUTtg8SU9Ka5/SiC62Ae5VACkGkHXaxemKaJv6AY6+iI+dIrEiu9zCefgv6Mq X7Z/SduusRZgyz5vm4gSTA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > 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? No clue but we still have the 9.5 safety snap that I can make repeated sub-snaps of for mor testing. I did one such test yesterday and things looked $normal after the upgrade. Noteworthy omission was that I did *not* run the post-analysis. I could repeat the test more thoroughly. We run a parallel analyzer framework to get huge DBs processed quickly. And we generally do it in 2 passes; the first with def_stats_target scaled down to finish quicker and hopefully be good enough to run production. At this point we open the DB cluster for business. Immediately following we again run the analyzer at full stats_target. Any other suggestions what to also look at and I'll be glad to do and report back. Big Thanks! -- Jerry Sievers e: jerry.sievers@comcast.net p: 312.241.7800