Skip to content

Commit 7f46e7c

Browse files
author
digoal
committed
improve
1 parent bf2426a commit 7f46e7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

202406/20240618_01.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ initdb --help
8888
-k, --data-checksums use data page checksums
8989
```
9090

91+
7、关闭计数器, pg_stat_statements等带来额外开销的插件.
92+
9193
以上都属于君子配置, 没什么危害. 下面来一点作弊配置.
9294

9395
1、少写点wal.

202406/20240621_01.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ begin
139139
140140
for loc in select case spcname when 'pg_default' then './base' else pg_tablespace_location(oid)||const end case from pg_tablespace where spcname <> 'pg_global' and oid in (select oid from pg_tablespace)
141141
loop
142-
for ofile in select file from pg_ls_dir(format('%s/%s', loc, dbo)) as file where file ~ '^[0-9]*$' and file::text not in ( select pg_relation_filenode(oid)::text from pg_class where pg_relation_filenode(oid)::text is not null )
142+
for ofile in select file from pg_ls_dir(format('%s/%s', loc, dbo)) as file where file ~ '^[0-9]*$' and file::text not in ( select pg_relation_filenode(oid)::text from pg_class where pg_relation_filenode(oid)::text is not null )
143143
loop
144144
for ofiles in select file from pg_ls_dir(format('%s/%s', loc, dbo)) as file where file = ofile or file ~ ('^'||ofile||'_') or file ~ ('^'||ofile||'\.')
145145
loop

0 commit comments

Comments
 (0)