postgresql - 在 Postgres SQL 中进行并行处理时出现“错误:无法识别的配置参数“max_parallel_workers_per_gather”
问题描述
我的代码
SET max_parallel_workers_per_gather = 2;
错误
ERROR: unrecognized configuration parameter "max_parallel_workers_per_gather"
注意- 当我想启用并行处理时使用 Postgres SQL 时,我收到了上述错误。
解决方案
我正在使用 postgresql 9.6 并且没有错误。
我是这样做的:
/etc/postgresql/9.6/main/postgresql.conf
以root权限打开取消注释max_parallel_workers_per_gather
并相应地设置值。保存它,然后重新启动 postgresql
sudo service postgresql 重启
在 postgresql.conf 内部:-
max_worker_processes = 8 # (change requires restart)
max_parallel_workers_per_gather = 4 # taken from max_worker_processes
推荐阅读
- python-3.x - 从 pypika 中的数据库函数中选择值
- java - 尝试使用 maven 安装 arcgis-java 依赖项时出现 403 Forbidden
- html - 移动上的滑块剪切图像 WordPress
- python-3.x - PyTest:如何使用特定标记运行特定脚本
- sql - 当列默认逻辑时,表如何包含大小写?
- apache-kafka - kafka connect可以使用主题作为源然后将其下沉到另一个主题吗?
- java - 通过反射调用嵌套的 deepobject 方法
- python - 无法导入手电筒
- eclipse - 当退格所有字母时,不要在 Eclipse 中显示自动完成
- apache - 错误 404 重定向不适用于我的 .htaccess