当前位置: 首页 > news >正文

PG14启动报错“max_stack_depth“ must not exceed 7680kB

问题描述

PG14编译安装后启动报错"max_stack_depth" must not exceed 7680kB

[root@top132:/pgdb/data]$ systemctl start postgres
Job for postgres.service failed because the control process exited with error code. See "systemctl status postgres.service" and "journalctl -xe" for details.
[root@top132:/pgdb/data]$ journalctl -xe
Oct 09 04:12:48 top132 systemd[1]: Configuration file /usr/lib/systemd/system/postgres.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Oct 09 04:12:56 top132 oracledb_exporter[29984]: ts=2023-10-09T08:12:56.802Z caller=collector.go:262 level=error Errorpingingoracle:="missing port in address"
Oct 09 04:13:11 top132 oracledb_exporter[29984]: ts=2023-10-09T08:13:11.805Z caller=collector.go:262 level=error Errorpingingoracle:="missing port in address"
Oct 09 04:13:26 top132 oracledb_exporter[29984]: ts=2023-10-09T08:13:26.803Z caller=collector.go:262 level=error Errorpingingoracle:="missing port in address"
Oct 09 04:13:41 top132 oracledb_exporter[29984]: ts=2023-10-09T08:13:41.806Z caller=collector.go:262 level=error Errorpingingoracle:="missing port in address"
Oct 09 04:13:56 top132 oracledb_exporter[29984]: ts=2023-10-09T08:13:56.802Z caller=collector.go:262 level=error Errorpingingoracle:="missing port in address"
Oct 09 04:14:04 top132 polkitd[727]: Registered Authentication Agent for unix-process:9141:161465164 (system bus name :1.6876 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, loca
Oct 09 04:14:04 top132 systemd[1]: Starting PostgreSQL database server...
-- Subject: Unit postgres.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit postgres.service has begun starting up.
Oct 09 04:14:04 top132 pg_ctl[9147]: waiting for server to start....2023-10-09 08:14:04.952 GMT [9151] LOG:  invalid value for parameter "max_stack_depth": 8192
Oct 09 04:14:04 top132 pg_ctl[9147]: 2023-10-09 08:14:04.952 GMT [9151] DETAIL:  "max_stack_depth" must not exceed 7680kB.
Oct 09 04:14:04 top132 pg_ctl[9147]: 2023-10-09 08:14:04.952 GMT [9151] HINT:  Increase the platform's stack depth limit via "ulimit -s" or local equivalent.
Oct 09 04:14:04 top132 pg_ctl[9147]: 2023-10-09 04:14:04.953 EDT [9151] FATAL:  configuration file "/pgdb/data/postgresql.conf" contains errors
Oct 09 04:14:05 top132 pg_ctl[9147]: stopped waiting
Oct 09 04:14:05 top132 pg_ctl[9147]: pg_ctl: could not start server
Oct 09 04:14:05 top132 pg_ctl[9147]: Examine the log output.
Oct 09 04:14:05 top132 systemd[1]: postgres.service: control process exited, code=exited status=1

问题原因

由于pg14和vertica库在1台服务器安装,安装过程中设置了磁盘预读参数。
查看磁盘预读
[root@localhost ~]# /sbin/blockdev --getra /dev/sda
8192

解决办法

vi /pgdb/data/postgresql.conf
max_stack_depth修改小于7680kB

启动成功

http://www.lryc.cn/news/207150.html

相关文章:

  • BES2700 蓝牙协议之RFCOMM通道使用方法
  • 简单介绍一下迁移学习
  • PHP 同城服务共享茶室小程序系统是如何实现的?
  • JavaScript对象与原型
  • 论文解读:《DataPype:用于计算机辅助药物设计的全自动统一软件平台》
  • 2023年Flutter教程_Flutter+Getx仿小米商城项目实战视频教程-V3版
  • 【Spring Boot系列】- Spring Boot事务应用详解
  • 28. 使用 k8e 玩转 kube-vip with Cilium‘s Egress Gateway 特性
  • webrtc ios build signing
  • 【接口测试】Jmeter接口实战-Dubbo接口+造10W数据测试(详细)
  • RabbitMQ原理(四):MQ的可靠性
  • YOLOv5算法改进(20)— 如何去写YOLOv5相关的论文(包括论文阅读+规律总结+写作方法)
  • Kotlin基础——函数、变量、字符串模板、类
  • 联邦存款保险公司与银行失败和失败银行列表数据集
  • 【FPGA】IIC协议通用主机接口的设计与实现详解
  • 《红蓝攻防对抗实战》八.利用OpenSSL对反弹shell流量进行加密
  • 手机桌面待办事项APP推荐
  • 2023NOIP A层联测18 划分
  • pc与android设备进行通信
  • 【网安大模型专题10.19】论文6:Java漏洞自动修复+数据集 VJBench+大语言模型、APR技术+代码转换方法+LLM和DL-APR模型的挑战与机会
  • const 和 volatile 在实例成员函数的应用
  • 比Nginx测试桩更方便,ShenYu网关的Mock插件
  • IDEA: 自用主题及字体搭配推荐
  • Qt中的枚举变量,Q_ENUM,Q_FLAG以及Qt中自定义结构体、枚举型做信号参数传递
  • 【C++】priority_queue仿函数
  • 如何驾驭ChatGPT:掌控有效对话!
  • LeetCode 面试题 16.03. 交点
  • 【码银送书第九期】《ChatGPT 驱动软件开发:AI 在软件研发全流程中的革新与实践》
  • Hadoop3.0大数据处理学习4(案例:数据清洗、数据指标统计、任务脚本封装、Sqoop导出Mysql)
  • 华为机试题:HJ3 明明的随机数