3.
[local:/data/run/pg13]:5130 pg13@masterdb=# create table
tbl1(id int,c1 char(20));
4.
CREATE TABLE
5.
[local:/data/run/pg13]:5130 pg13@masterdb=# insert into
tbl1(id,c1) select x,'c1'||x from generate_series(1,1000000)
as x;
6.
INSERT 0 1000000
7.
[local:/data/run/pg13]:5130 pg13@masterdb=# select
pg_relation_filepath('tbl1');
8.
pg_relation_filepath
9.
----------------------
10.
base/16384/16395
11.
(1 row)
12.
[local:/data/run/pg13]:5130 pg13@masterdb=#
日志输出
,PG
自动对
tbl1
进行了分析
1.
2020-05-22 14:52:56.790 CST,,,62686,,5ec776c8.f4de,1,,2020-
05-22 14:52:56 CST,4/197,0,LOG,00000,"automatic vacuum of
table ""masterdb.public.tbl1"": index scans: 0
2.
pages: 0 removed, 7353 remain, 0 skipped due to pins, 0
skipped frozen
3.
tuples: 0 removed, 1000000 remain, 0 are dead but not yet
removable, oldest xmin: 508
4.
buffer usage: 14734 hits, 2 misses, 4 dirtied
5.
avg read rate: 0.031 MB/s, avg write rate: 0.063 MB/s
6.
system usage: CPU: user: 0.27 s, system: 0.02 s, elapsed: 0.49
s
7.
WAL usage: 7354 records, 1 full page images, 442212
bytes",,,,,,,,,"","autovacuum worker"
8.
2020-05-22 14:52:57.065 CST,,,62686,,5ec776c8.f4de,2,,2020-05-
22 14:52:56 CST,4/198,508,LOG,00000,"automatic analyze of
table ""masterdb.public.tbl1"" system usage: CPU: user: 0.16
s, system: 0.01 s, elapsed: 0.27 s",,,,,,,,,"","autovacuum
worker"
9.
[pg13@localhost 16384]$
生成了
vm
文件
评论