在Postgres SQL中进行并行处理时出现“错误:无法识别的配置参数”max_parallel_workers_per_gather“

问题描述 投票:0回答:1

我的守则

  SET max_parallel_workers_per_gather = 2;

错误

ERROR:  unrecognized configuration parameter "max_parallel_workers_per_gather"

注意 - 当我想要启用并行处理时使用Postgres SQL,我得到上面提到的错误。

postgresql postgresql-9.1
1个回答
2
投票

我正在使用postgresql 9.6,我没有错误。

我是这样做的:

用root权限打开/etc/postgresql/9.6/main/postgresql.conf取消注释max_parallel_workers_per_gather并相应地设置值。保存它,然后只需重新启动postgresql

sudo服务postgresql重启

在postgresql.conf里面: -

max_worker_processes = 8               # (change requires restart)
max_parallel_workers_per_gather = 4     # taken from max_worker_processes
© www.soinside.com 2019 - 2024. All rights reserved.