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 1mLmXR-0005oH-E4 for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 13:13:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLmXQ-00066A-5a for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 13:13:52 +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 1mLmXP-000662-AA for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 13:13:51 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLmXM-0005LE-8e for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 13:13:50 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1A41D32009C6; Thu, 2 Sep 2021 09:13:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 02 Sep 2021 09:13:45 -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=V6MtPxbcNr1GnbXawKi9syX89GwqZwaO8KnxzFg/0Ac=; b=DVn0fZ56 wjz2tdyAkFSZv1iq8zxz6vl00vQXyA3s5xCiV0/9LiFVgPVU/jDIBju0ozS2qY4w tAot6MjVapMu/axvyDxm+An6MIzYObBc/+k5TPawRMANEiKEhUTQs7JUX5zDVL0Z QC4r70WPvwEuIg5bJHh8YnowmXE8qnSVBU3yeP7A0TmsF07lrQbbaxnU5phO3Bl8 nZp0vPebeCRl/dN464iisKL5seoMV85lmAUYWisuzLaFBBjXb1NHdgQbHbQ9oEZd dHojkKJeYozJx6J2/Ky4BhQnnQw5UrHJSM0kPL3/Zy0WTNwczXhiFfjImsXPNKVz wGsuYxZBsvd+pw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvhedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 09:13:43 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id F1C9D2A0742; Thu, 2 Sep 2021 09:13:39 -0400 (-04) Date: Thu, 2 Sep 2021 09:13:39 -0400 From: Alvaro Herrera To: Matthew Tice Cc: pgsql-general@lists.postgresql.org Subject: Re: datfrozenxid not dropping after vacuum Message-ID: <202109021313.ciqv7wutrdo6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Sep-01, Matthew Tice wrote: > Hi Alvaro, thanks for the quick reply. Hi. Glad to hear that your problem is now behind. > I'm scheduled to do my patching maintenance at the end of this month - > but at this point I don't think I'm going to make it. > > Other than patching, is there a work around? Hm, in my previous reply I had written a suggestion to vacuum pg_database in the offending database after deleting the pg_internal.init file, but evidently I edited it out before sending. (Probably because I wasn't sure if you need to delete file, connect, vacuum, or rather connect, delete file, vacuum.) > For example, in #2 above: > >The fix for 2) is simpler, > > simply always remove both the shared and local init files. > > I'm not familiar with the differences between 'shared' and 'local' > init files (I'd imagine I referenced a 'local' file in my original > post)? The global file is in the global/ subdirectory of the data directory, and the "local" ones are each in the corresponding database directory: cd $PGDATA $ find . -name pg_internal.init ./base/12758/pg_internal.init ./base/46212/pg_internal.init ./global/pg_internal.init $ psql -c "select oid, datname from pg_database" oid | datname -------+------------ 12757 | postgres 12758 | alvherre 1 | template1 12756 | template0 46212 | regression (5 filas) So in the above there are cache files for databases regression and alvherre, plus the global one. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Hay dos momentos en la vida de un hombre en los que no debería especular: cuando puede permitírselo y cuando no puede" (Mark Twain)