highgo=# SELECT pc.relname AS ObjectName,pc.reloptions AS ObjectOptions FROM pg_class AS pc INNER JOIN pg_namespace AS pns ON pns.oid = pc.relnamespace WHERE pns.nspname = 'public' AND pc.relname = 'test'; -----查询现在的填充因子
objectname | objectoptions ------------+--------------- test | (1 row) highgo=# highgo=# ALTER TABLE test set ( fillfactor = 50); -----修改填充因子数值 ALTER TABLE highgo=# SELECT pc.relname AS ObjectName,pc.reloptions AS ObjectOptions FROM pg_class AS pc INNER JOIN pg_namespace AS pns ON pns.oid = pc.relnamespace WHERE pns.nspname = 'public' AND pc.relname = 'test'; -----查询修改后的填充因子数值
objectname | objectoptions ------------+----------------- test | {fillfactor=50} (1 row) highgo=#