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

Поиск
Список
Период
Сортировка
От 两个孩子的爹
Тема 回复:BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the
Дата
Msg-id tencent_51ED91C05DFAA4EB4B7972C983BE24625809@qq.com
обсуждение исходный текст
Ответ на BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
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


------------------ 原始邮件 ------------------
发件人: "1726002692" <noreply@postgresql.org>;
发送时间: 2022年1月26日(星期三) 下午4:25
收件人: "pgsql-bugs"<pgsql-bugs@lists.postgresql.org>;
抄送: "两个孩子的爹"<1726002692@qq.com>;
主题: BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the

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 по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17382: When vacuum full or vacuumdb - F is executed, a large number of empty files will be generated in the
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #17354: pg_hba_file_rules always shows verify-ca when auth_method=cert