Postgresql 运行autovacuum的选项中的默认值是什么
我已经检查了Postgres服务器中的表Postgresql 运行autovacuum的选项中的默认值是什么,postgresql,autovacuum,Postgresql,Autovacuum,我已经检查了Postgres服务器中的表 SELECT reloptions FROM pg_class WHERE relname = 'log_xxx_table'; 我猜返回数据是“autovacuum\u enabled=true”,但返回数据是null 此表有真空日志运行自动真空 默认的reloptions为null,但autovacuum_enabled=true?reloptions的默认值为null,这意味着可配置选项设置为其默认值。autovacuum\u enabled的默
SELECT reloptions
FROM pg_class
WHERE relname = 'log_xxx_table';
我猜返回数据是“autovacuum\u enabled=true”
,但返回数据是null
此表有真空日志运行自动真空
默认的reloptions为null,但autovacuum_enabled=true?reloptions的默认值为null,这意味着可配置选项设置为其默认值。
autovacuum\u enabled
的默认值为true
。您可以如示例中所示进行设置:
create table a_table(id int)
with (autovacuum_enabled = false);
select relname, reloptions
from pg_class
where relname = 'a_table';
relname | reloptions
---------+----------------------------
a_table | {autovacuum_enabled=false}
(1 row)
reloptions
的默认值为空,这意味着可配置选项设置为其默认值。autovacuum\u enabled
的默认值为true
。您可以如示例中所示进行设置:
create table a_table(id int)
with (autovacuum_enabled = false);
select relname, reloptions
from pg_class
where relname = 'a_table';
relname | reloptions
---------+----------------------------
a_table | {autovacuum_enabled=false}
(1 row)
你的问题是什么?你的问题是什么?