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 1nDTuY-0007nS-Or for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jan 2022 16:15:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nDTuX-0006uZ-9z for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jan 2022 16:15:41 +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 1nDTuX-0006uQ-1u for pgsql-bugs@lists.postgresql.org; Fri, 28 Jan 2022 16:15:41 +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 1nDTuU-0004go-Og for pgsql-bugs@lists.postgresql.org; Fri, 28 Jan 2022 16:15:40 +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 20SGFWHA2772242; Fri, 28 Jan 2022 11:15:34 -0500 From: Tom Lane To: "=?gb18030?B?wb249rqi19O1xLX5?=" <1726002692@qq.com> cc: "=?gb18030?B?cGdzcWwtYnVncw==?=" Subject: Re: BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the In-reply-to: References: <17382-9b238ae4286aef7d@postgresql.org> <2441394.1643210985@sss.pgh.pa.us> Comments: In-reply-to "=?gb18030?B?wb249rqi19O1xLX5?=" <1726002692@qq.com> message dated "Fri, 28 Jan 2022 21:42:47 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2772240.1643386532.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Jan 2022 11:15:32 -0500 Message-ID: <2772241.1643386532@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "=3D?gb18030?B?wb249rqi19O1xLX5?=3D" <1726002692@qq.com> writes: > Sorry, it's my fault. The empty files generated by "vacuumdb - f " is lo= cated under the $pgdata / base / 99522 directory Oh, if they are under the database's subdirectory then it's not so surprising. VACUUM FULL (or, actually, any table deletion or rewrite) leaves behind an empty "tombstone" file that is just there to prevent re-use of that table number for the moment. It'll go away at the next checkpoint. regards, tom lane