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 1f49n9-0002oj-Au for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 18:39:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f49n7-0008Pp-Rh for pgsql-general@arkaria.postgresql.org; Thu, 05 Apr 2018 18:39:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f49n7-0008Pf-2w for pgsql-general@lists.postgresql.org; Thu, 05 Apr 2018 18:39:21 +0000 Received: from resqmta-ch2-07v.sys.comcast.net ([2001:558:fe21:29:69:252:207:39]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f49n4-0004Zt-39 for pgsql-general@postgresql.org; Thu, 05 Apr 2018 18:39:19 +0000 Received: from resomta-ch2-09v.sys.comcast.net ([69.252.207.105]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id 49j1f7mr4nLlk49n1fpJCR; Thu, 05 Apr 2018 18:39:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1522953555; bh=5AHD6Tj+aQxG/9PYDlN34IcQUI+fqcNqNqnlq4TDpeE=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=c9SnD4UmU34ub3AeHeN1mEWg1DpFi0HJmp1K3siXSzF8ZtcKyNDJlCyLtic6cHpGA zlvtzm3/fKKMuu1++jRsPymiOWEOW7WMvTrFPHfxU0kQCVLd1tFzlqkoKmOhyONVAC xx8+yhi8RkJkRLVh0sxQX/nugGj114FXT2amjesY3vUguewxBSPFsFVXcqHidK/6mB fFoVOBChplZ1oacww8KQtqHR6+t4s7ti43N5FhPBh5o91OcHK/T1D5XTbQkFDypE1l mnA4+BvASVg/KC223Y3GE9chNEyr+Lj9Yfgul31mXGXWwe7PmubYj9LTe+klhuOm2C imV2KwrJhFSIg== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-ch2-09v.sys.comcast.net with SMTP id 49mofdRvyzJJU49mqfQWFV; Thu, 05 Apr 2018 18:39:13 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id AE5EB260056; Thu, 5 Apr 2018 13:39:01 -0500 (CDT) From: Jerry Sievers To: Jerry Sievers Cc: Bruce Momjian , 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> <87zi2inyp7.fsf@comcast.net> Date: Thu, 05 Apr 2018 13:39:01 -0500 In-Reply-To: <87zi2inyp7.fsf@comcast.net> (Jerry Sievers's message of "Wed, 04 Apr 2018 22:01:40 -0500") Message-ID: <87sh89qz0a.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: MS4wfIHcLolC1cAusEICEboITmVp2a/OTi/oD5EQw5xUouQTkdlqVxiH5U/E2DrG3RZRlACVAAchNbmYjfeZw1A+arWfe1uaLcV3jupNgtdVH+HtnnVX19fc vzBcTv+1FHquhYStIAyvk8KJr1CmVTIlslj2ECUMeYMBTf5N6pGlhC2v190ogiez5kBsNj9LxFrA48fqhcAb4TqA5jCgMbNN3MqZxdVEjh4bjqgx1+zmbC5E NuP7CzP8gTKj9l9mfY1/BA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jerry Sievers writes: > Bruce Momjian writes: > >> 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? > > txid_current is another 12M higher then a few hours ago. Still waiting > to hear from my reporting team if they changed anything. Reporting team claims nothing changed. I still have 150 tables ready for autovac just based on freeze age value. Autovac is running at our as-config'd max worker count of 20 w/all threads busy as expected. If I can assume stats such as pg_stat_database start initially cleared after an upgrade... Please see that pg_stat_database showing about the number of transactions that I'd expect for this system and ~1.5 day duration. How have some objects apparently aged by ~100M transactions (by now at last check) since the upgrade ?? Thanks postgres=# select sum(xact_rollback+ xact_commit) from pg_stat_database; sum --------- 5292417 (1 row) postgres=# select now() - pg_postmaster_start_time(); ?column? ----------------------- 1 day 13:18:48.721896 (1 row) postgres=# select version(); version ---------------------------------------------------------------------------------------------------------------------------------------------- PostgreSQL 9.6.8 on x86_64-pc-linux-gnu (Ubuntu 9.6.8-1.pgdg16.04+1), compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609, 64-bit (1 row) > > This thing is running PgLogical and has a few of our event triggers as > well. But nothing in this regard changed with the upgrade. > > What if some very frequent but trivial statements that did not get > assigned a real TXID in 9.5 on this configuration now are being treated > differently? > > What's puzzling too is that when I run my TPS monitor script, it's > clicking along at what looks typical, presently would only amount to > 700k transactions/day but we're off-peak. > > Thx >> >> >>> >>> If this is a not too uncommon case of users running amok, then this time >>> in particular they really went off the charts :-) >> >> I have never heard of this problem. -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800