0

我正在尝试在 PostgreSQL 11 上调整分区表上的 autovacuum 设置。

例如:

# create table test (ts timestamp) partition by range (ts);
CREATE TABLE
# alter table test set (autovacuum_analyze_scale_factor = 0.1);
ERROR:  unrecognized parameter "autovacuum_analyze_scale_factor"

是否可以更改分区表上的此类设置?

4

1 回答 1

3

似乎只能在表分区上设置参数,而不能在父表上设置参数。

postgres=# create table test (ts timestamp) partition by range (ts);
CREATE TABLE
postgres=# create table test_2018 partition of test for values from ('2018-01-01 00:00:00') to ('2018-12-31 23:59:59');
CREATE TABLE
postgres=# alter table test_2018 set (autovacuum_analyze_scale_factor = 0.1);
ALTER TABLE
postgres=# alter table test set (autovacuum_analyze_scale_factor = 0.1);
ERROR:  unrecognized parameter "autovacuum_analyze_scale_factor"
postgres=# 
于 2019-01-01T08:30:30.113 回答