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 1m41Xg-0001sk-9N for pgsql-general@arkaria.postgresql.org; Thu, 15 Jul 2021 13:36:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m41Xe-0005Bk-TS for pgsql-general@arkaria.postgresql.org; Thu, 15 Jul 2021 13:36:42 +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 1m41Xe-0005BZ-1p for pgsql-general@lists.postgresql.org; Thu, 15 Jul 2021 13:36:42 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m41XW-0005cZ-6i for pgsql-general@postgresql.org; Thu, 15 Jul 2021 13:36:41 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 3CDE53200912; Thu, 15 Jul 2021 09:36:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 15 Jul 2021 09:36:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=YQc3UCZE4wzL34vJOHciC40KoXNfMfleU6mX9ZtG6GY=; b=mRGoI32q 23hgyxMT51c65bHZkHLQM40D+5jfC8NKOIpQQTq2zkU6osEndFaiZsChbSRKTU6D VZvT68IjwUYwY5RM8zLtEjJJTcPF9cnEw5KU4thwta1TAKAd0TSdIe2cnm+TbnOA 8oFByy1fi4UOXeyC94sOqxss1IDnkIaozWQD8h4WO8KPWuf7Rsr6fjDyd4phGKGW gr0/DNnM+sjc+pAgpGgBxMWGmCEEf+GO+m/0q8fXE1Z0aMw3fK+X/Ta34JiwxDkx t6twi68GX79vrr/T3E0DcTx/wJFDdqrfuLvAOz7TtGLk6E1uvevPEyP8G7oliMfN c/U1yyjzr3iq4g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtgdegjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjsehtkeertd dttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvges rghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedujeevjeffjeevud dutedvkeeiueeitddvieelfeekveejudefgeeuvdejhfeuleenucffohhmrghinhepvghn thgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Jul 2021 09:36:30 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 98A082A099B; Thu, 15 Jul 2021 09:36:27 -0400 (-04) Date: Thu, 15 Jul 2021 09:36:27 -0400 From: Alvaro Herrera To: Sasha Aliashkevich Cc: pgsql-general@postgresql.org Subject: Re: ERROR: cannot freeze committed xmax Message-ID: <202107151336.g55vi6aj7e7m@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8C414E45-6DD8-48E0-84B2-2D53545000D0@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Sasha On 2021-Jul-14, Sasha Aliashkevich wrote: > lp | ctid | xmin | xmax | xmax_is_lock | xmax_committed | xmax_rolled_back | xmax_multixact > ----+---------+-----------+------+--------------+----------------+------------------+---------------- > 19 | (75,21) | 571 | 572 | f | f | t | f > 21 | (75,21) | 572 | 0 | f | f | t | f Yeah, row 19 here is dead and should have been removed by vacuum (same with the ones in pg_depend). I don't know why it wasn't. If you query the tables SELECT * FROM pg_proc WHERE ctid = '(75,19)' are they visible? They shouldn't. If they are visible, maybe try to UPDATE them, again by ctid; perhaps that will kill them for good. But since the txid_status() returns committed, that likely won't work. Maybe if you try to VACUUM by setting vacuum_freeze_min_age to a high value (so that it doesn't try to freeze, but only remove them) they are removed? (I didn't verify that the values you &-mask the infomask with are correct.) -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/