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 1nCkF9-0004gk-24 for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Jan 2022 15:29: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 1nCkF7-0004p5-TQ for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Jan 2022 15:29:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCkF7-0004ow-LO for pgsql-bugs@lists.postgresql.org; Wed, 26 Jan 2022 15:29:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCkF1-0002KH-6u for pgsql-bugs@lists.postgresql.org; Wed, 26 Jan 2022 15:29:52 +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 20QFTjLv2441395; Wed, 26 Jan 2022 10:29:46 -0500 From: Tom Lane To: 1726002692@qq.com cc: pgsql-bugs@lists.postgresql.org 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: <17382-9b238ae4286aef7d@postgresql.org> References: <17382-9b238ae4286aef7d@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 26 Jan 2022 08:25:20 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2441393.1643210985.1@sss.pgh.pa.us> Date: Wed, 26 Jan 2022 10:29:45 -0500 Message-ID: <2441394.1643210985@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > When vacuum full or vacuumdb - F is executed, a large number of empty files > will be generated in the database. These files have never been deleted. > Each execution of vacuum full or vacuudb - F will produce a large number of > empty files.These empty files will not be deleted until the database is > restarted. > Is this a bug? It might be if you could tell us how to reproduce it --- I see no such behavior here. In general, PG uses numerically-named files for table contents, but they should always appear in subdirectories of $PGDATA, never in the directory's top level. So I have no idea what those are or what put them there. Perhaps you are using some unusual extension or custom C code that creates them? regards, tom lane