Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngpwN-0005fq-TU for pgsql-general@arkaria.postgresql.org; Tue, 19 Apr 2022 15:38:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngpwM-0004PT-QU for pgsql-general@arkaria.postgresql.org; Tue, 19 Apr 2022 15:38:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngpwM-0004PK-FR for pgsql-general@lists.postgresql.org; Tue, 19 Apr 2022 15:38:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngpwK-0007pv-5Q for pgsql-general@lists.postgresql.org; Tue, 19 Apr 2022 15:38:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23JFcnhV2555589; Tue, 19 Apr 2022 11:38:49 -0400 From: Tom Lane To: Rob Sargent cc: bhargav kamineni , pgsql-general@lists.postgresql.org Subject: Re: oldest xmin is far in the past :: BUT xmin is not available in system In-reply-to: <9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com> References: <9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com> Comments: In-reply-to Rob Sargent message dated "Tue, 19 Apr 2022 00:56:23 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2555587.1650382729.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Apr 2022 11:38:49 -0400 Message-ID: <2555588.1650382729@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rob Sargent writes: > On 4/19/22 00:06, David G. Johnston wrote: >> On Monday, April 18, 2022, bhargav kamineni wrote: >> It seems vacuum is behaving somewhat weird on postgres database , >> observing below HINTS on the vacuum logs >> WARNING: =C2=A0oldest xmin is far in the past > This site has lots of useful queries for this sort of issue: > https://www.shanelynn.ie/postgresql-find-slow-long-running-and-blocked-q= ueries. = > I think you're looking for a very old transaction that is probably not = > going to finish, must be terminated. Yeah, that. Manual vacuuming isn't going to help until you get rid of the old open transaction. Look into pg_prepared_xacts and pg_stat_activity. regards, tom lane