我的守则
SET max_parallel_workers_per_gather = 2;
错误
ERROR: unrecognized configuration parameter "max_parallel_workers_per_gather"
注意 - 当我想要启用并行处理时使用Postgres SQL,我得到上面提到的错误。
我正在使用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