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 1f3qus-00062l-UN for pgsql-general@arkaria.postgresql.org; Wed, 04 Apr 2018 22:30:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3qur-0001kB-Sg for pgsql-general@arkaria.postgresql.org; Wed, 04 Apr 2018 22:30:05 +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 1f3qur-0001k0-59 for pgsql-general@lists.postgresql.org; Wed, 04 Apr 2018 22:30:05 +0000 Received: from resqmta-ch2-12v.sys.comcast.net ([2001:558:fe21:29:69:252:207:44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3qun-0003ZD-Nk for pgsql-general@postgresql.org; Wed, 04 Apr 2018 22:30:04 +0000 Received: from resomta-ch2-14v.sys.comcast.net ([69.252.207.110]) by resqmta-ch2-12v.sys.comcast.net with ESMTP id 3qu3fqo6eoWpd3qugfkkxx; Wed, 04 Apr 2018 22:29:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1522880994; bh=l5x9DUpn9nibbPNWEPkKBgTjsDguDsabOOAyM6YizaM=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=lvYic6++iEu3LnJDnr1GMkLuZ30F9vXK9qZQh3APTj2I0g54nIys3SNgGpWCc3z7y tTttGIrlt8IPTln+deLjyuqH0KsSTxykJz6mA0g41x4NTKYqkQ4CqJ5ZM+I/lKNkl/ KfMUlcCTbUpVtNSmbCMyZw3bojon22WE8mo5TK4i8EJ7DJ1GDbrjYj6bv131vcu5fA u9ybbJYm58AZ9ttphys7TFYAjnYAz4Ly3s7pXBh7cw16Oklb8qNwXDiWg442I5qkCN K5QE3QhWZfoxVIKZ/VzrBxjq3HJs53jPk3uV+RAGOvQxnsvXJO9Vv0jtbm0Q2KSetM iWtcWys0iOnVQ== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-ch2-14v.sys.comcast.net with SMTP id 3quYf09EPgw873quafRhUl; Wed, 04 Apr 2018 22:29:52 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 5B753260056 for ; Wed, 4 Apr 2018 17:29:46 -0500 (CDT) From: Jerry Sievers To: pgsql-general@postgresql.org Subject: PgUpgrade bumped my XIDs by ~50M? Date: Wed, 04 Apr 2018 17:29:46 -0500 Message-ID: <87sh8a7gh1.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: MS4wfFwRectTFFr6hBpInCNRsvXzyK4yHW+rJdcjOJw6CkWYlmHwFVlPye9cyZzQGBHAOBqwzqEh4clWSqIfNNgYjMiakA5jMQQgYbKv1ro8YbaWvcw9lPp7 YglbN3pOiGQ9mihiAXX2ax6tpgx53f5c3auZWuCa+wWucF1SARnZgCjjPUrwPGbkNkwqlwx6NrNkzg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk We have a large >20TB system just pg_upgraded from 9.5 to 9.6 as per the versions shown below. The system does <5M transactions/day based on sum(commit + abort) from pg_stat_database. Autovac is running all possible threads now and upon investigating I see that thousands of tables are now above the freeze threshold. Same tables all appear ~50M xids older than they did yesterday and the upgrade was less than 24 hours ago. I have a "safety" snap made of the system before upgrade that can be used for inspection. Any ideas why the age jump? select age(l.relfrozenxid), l.oid::regclass::text as relation, l.relkind, l.relpages, r.oid::regclass::text as "toast for" from pg_class l left join pg_class r on l.oid = r.reltoastrelid where l.relkind in ('r', 't') order by age desc, relation limit :limit ii postgresql-9.5 9.5.12-1.pgdg16.04+1 amd64 object-relational SQL database, version 9.5 server ii postgresql-9.6 9.6.8-1.pgdg16.04+1 amd64 object-relational SQL database, version 9.6 server Thanks -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800