BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the
Date
Msg-id 17382-9b238ae4286aef7d@postgresql.org
Whole thread Raw
Responses 回复:BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the  ("两个孩子的爹" <1726002692@qq.com>)
Re: BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17382
Logged by:          强 魏
Email address:      1726002692@qq.com
PostgreSQL version: 14.1
Operating system:   CentOS 7.6
Description:

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?

The following is the verification:

user:postgres@db:postgres[[local]:5432]#\c postgres
user:postgres@db:postgres[[local]:5432]#vacuum full;
[postgres@PG-3 99522]$cd $PGDATA
[postgres@PG-3 99522]$ll | less
总用量 13096
-rw------- 1 postgres postgres      0 1月  26 16:13 100705
-rw------- 1 postgres postgres      0 1月  26 16:13 100708
-rw------- 1 postgres postgres      0 1月  26 16:17 100709
-rw------- 1 postgres postgres      0 1月  26 16:17 100710
-rw------- 1 postgres postgres      0 1月  26 16:17 100711
-rw------- 1 postgres postgres      0 1月  26 16:17 100714
-rw------- 1 postgres postgres      0 1月  26 16:17 100715
-rw------- 1 postgres postgres      0 1月  26 16:17 100716
-rw------- 1 postgres postgres      0 1月  26 16:17 100717
-rw------- 1 postgres postgres      0 1月  26 16:13 100720
-rw------- 1 postgres postgres      0 1月  26 16:17 100721
-rw------- 1 postgres postgres      0 1月  26 16:17 100722
-rw------- 1 postgres postgres      0 1月  26 16:17 100723
-rw------- 1 postgres postgres      0 1月  26 16:17 100724
-rw------- 1 postgres postgres      0 1月  26 16:17 100727
-rw------- 1 postgres postgres      0 1月  26 16:17 100728
-rw------- 1 postgres postgres      0 1月  26 16:17 100729
-rw------- 1 postgres postgres      0 1月  26 16:17 100730
-rw------- 1 postgres postgres      0 1月  26 16:17 100731
-rw------- 1 postgres postgres      0 1月  26 16:13 100734
-rw------- 1 postgres postgres      0 1月  26 16:17 100735
-rw------- 1 postgres postgres      0 1月  26 16:17 100736
-rw------- 1 postgres postgres      0 1月  26 16:17 100737
-rw------- 1 postgres postgres      0 1月  26 16:17 100740
-rw------- 1 postgres postgres      0 1月  26 16:17 100741
-rw------- 1 postgres postgres      0 1月  26 16:17 100742
-rw------- 1 postgres postgres      0 1月  26 16:17 100745
-rw------- 1 postgres postgres      0 1月  26 16:17 100746
-rw------- 1 postgres postgres      0 1月  26 16:17 100747
-rw------- 1 postgres postgres      0 1月  26 16:17 100750
-rw------- 1 postgres postgres      0 1月  26 16:17 100751
-rw------- 1 postgres postgres      0 1月  26 16:17 100752
-rw------- 1 postgres postgres      0 1月  26 16:17 100753
-rw------- 1 postgres postgres      0 1月  26 16:13 100756
-rw------- 1 postgres postgres      0 1月  26 16:17 100757
-rw------- 1 postgres postgres      0 1月  26 16:17 100758
-rw------- 1 postgres postgres      0 1月  26 16:17 100759
-rw------- 1 postgres postgres      0 1月  26 16:17 100767
-rw------- 1 postgres postgres      0 1月  26 16:13 100770
-rw------- 1 postgres postgres      0 1月  26 16:17 100771
-rw------- 1 postgres postgres      0 1月  26 16:17 100772
-rw------- 1 postgres postgres      0 1月  26 16:17 100773
-rw------- 1 postgres postgres      0 1月  26 16:17 100774
-rw------- 1 postgres postgres      0 1月  26 16:17 100775
-rw------- 1 postgres postgres      0 1月  26 16:17 100776
-rw------- 1 postgres postgres      0 1月  26 16:17 100777
-rw------- 1 postgres postgres      0 1月  26 16:17 100780
-rw------- 1 postgres postgres      0 1月  26 16:17 100781
-rw------- 1 postgres postgres      0 1月  26 16:17 100782
-rw------- 1 postgres postgres      0 1月  26 16:17 100785
-rw------- 1 postgres postgres      0 1月  26 16:17 100786
-rw------- 1 postgres postgres      0 1月  26 16:17 100787
-rw------- 1 postgres postgres      0 1月  26 16:17 100790
-rw------- 1 postgres postgres      0 1月  26 16:17 100791
-rw------- 1 postgres postgres      0 1月  26 16:17 100792
-rw------- 1 postgres postgres      0 1月  26 16:17 100795
-rw------- 1 postgres postgres      0 1月  26 16:17 100796
-rw------- 1 postgres postgres      0 1月  26 16:17 100797
-rw------- 1 postgres postgres      0 1月  26 16:13 100800
-rw------- 1 postgres postgres      0 1月  26 16:17 100801
-rw------- 1 postgres postgres      0 1月  26 16:17 100802
-rw------- 1 postgres postgres      0 1月  26 16:17 100803

[postgres@PG-3 99522]$ ll | wc -l
445
[postgres@PG-3 99522]$ pg_ctl restart
waiting for server to shut down.... done
server stopped
waiting for server to start....2022-01-26 16:18:54 CST[13684]:[1-1]user =
,db = ,app = ,client = LOG:  redirecting log output to logging collector
process
2022-01-26 16:18:54 CST[13684]:[2-1]user = ,db = ,app = ,client = HINT:
Future log output will appear in directory "log".
 done
server started
[postgres@PG-3 99522]$ ll | wc -l
229


pgsql-bugs by date:

Previous
From: Matti Linnanvuori
Date:
Subject: Re: BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing
Next
From: "两个孩子的爹"
Date:
Subject: 回复:BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the