Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnoow-000387-Bw for pgsql-admin@arkaria.postgresql.org; Wed, 17 Jul 2019 18:38:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnoov-0006pR-56 for pgsql-admin@arkaria.postgresql.org; Wed, 17 Jul 2019 18:38:29 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnoot-0006cV-G1 for pgsql-admin@lists.postgresql.org; Wed, 17 Jul 2019 18:38:28 +0000 Received: from resqmta-ch2-04v.sys.comcast.net ([2001:558:fe21:29:69:252:207:36]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnooq-0004ZP-7v for pgsql-admin@lists.postgresql.org; Wed, 17 Jul 2019 18:38:27 +0000 Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id nntrho49oUhOfnoojhm6rC; Wed, 17 Jul 2019 18:38:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1563388697; bh=lQx1joKawQjZe5ATsG77ShnqiQrrrV4S1dqyhMQ+ZCs=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=xzHxOK2IntAccPkTtTGm31S9PoDhHM0xKA0kBxZZEGTU8SZuam4kso/uFSfhXHTzr rEAzmSEq/khTTCoSR0AZMutXEyOWskWA0+0ucRXynGPwIsnpCGgeNfFF75XL6ouBMO bfPvBnVyXfww2nZdzuTtx5zGxjmIbhrT/YG6J14iGUJ9fBCZz6tPaZWvNnHvmSSILQ 6dBYTlmkHqE6TE4TnES5Gs5/AkPjvsalH9vvNRuWsAUxpDT1LnwB/Ym0poArwD6+ds /sGG533KXAMkycFH04/u19l/HXVBkMbVh2GwGTGLSSFIZHfYz5EC4t16uL7snZh1aA xflKF+Nu8OQ6A== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-ch2-13v.sys.comcast.net with ESMTPA id nooah8IjHa9P8nooahcnAU; Wed, 17 Jul 2019 18:38:15 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduvddrieefgddutdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpeflvghrrhihucfuihgvvhgvrhhsuceoghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtqeenucfkphepuddvrdeftddrudehledrvddtnecurfgrrhgrmhephhgvlhhopehjshhivghvvghrshdrtghomhgtrghsthdrnhgvthdpihhnvghtpeduvddrfedtrdduheelrddvtddpmhgrihhlfhhrohhmpehgshhivghvvghrshduleestghomhgtrghsthdrnhgvthdprhgtphhtthhopehpghhsqhhlqdgrughmihhnsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehssghosgesqhhurggurhgrthhumhdqsghrrggttggrshdrtghomhenucevlhhushhtvghrufhiiigvpedt X-Xfinity-VMeta: sc=-100;st=legit Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 16ED226005A; Wed, 17 Jul 2019 13:38:08 -0500 (CDT) From: Jerry Sievers To: "S. Bob" Cc: pgsql-admin@lists.postgresql.org Subject: Re: xmin value from pg_stat_replication References: <2bbb14f7-b894-cf98-986f-59e4711d0aa5@quadratum-braccas.com> Date: Wed, 17 Jul 2019 13:38:08 -0500 In-Reply-To: <2bbb14f7-b894-cf98-986f-59e4711d0aa5@quadratum-braccas.com> (S. Bob's message of "Wed, 17 Jul 2019 12:31:29 -0600") Message-ID: <87a7dc8q27.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 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "S. Bob" writes: > All; > > > We have a master and a standby (Streaming replication). > > This query produces a value of approx 1.5million on the master and > approx 80million on the standby: > > > select slot_name, slot_type, database, xmin from pg_replication_slots > order by age(xmin); Why does your standby have rep slots? Is it also feeding lower subordinate standbys? > > > We are running replication in async mode. > > > A couple of questions: > > > - Is it unusual for the master & standby to differ dramatically like this? > > - could the replication slot (i.e. the xmin on the standby) be > preventing vacuum from cleaning up row versions on the master? > > > Thanks in advance > > > > > > > > > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net