也许有一些函数可以检查索引和表的填充因子?我已经尝试了\d+,但只有基本定义,没有填充因子的值:
也许有一种方法可以在不解析输出的情况下获得这个值?
Index "public.tab1_pkey"
Column | Type | Definition | Storage
--------+--------+------------+---------
id | bigint | id | plain
primary key, btree, for table "public.tab1"
关于表格,我没有找到任何信息。如果该表格是使用除默认值以外的fillfactor创建的:
CREATE TABLE distributors (
did integer,
name varchar(40),
UNIQUE(name) WITH (fillfactor=70)
)
WITH (fillfactor=70);
然后\d+个分销商
显示了非标准的填充因子。
Table "public.distributors"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
did | integer | | plain | |
name | character varying(40) | | extended | |
Indexes:
"distributors_name_key" UNIQUE CONSTRAINT, btree (name) WITH (fillfactor=70)
Has OIDs: no
Options: fillfactor=70
也许有一种方法可以在不解析输出的情况下获得这个值?