PG 数据库启动
博客专区 > MtrS 的博客 > 博客详情
PG 数据库启动
MtrS 发表于1年前
PG 数据库启动
  • 发表于 1年前
  • 阅读 40
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

DEBUG:  loaded library "imcs"
DEBUG:  find_in_dynamic_libpath: trying "/opt/pgsql/lib/plugin_debugger"
DEBUG:  find_in_dynamic_libpath: trying "/opt/pgsql/lib/plugin_debugger.so"
DEBUG:  loaded library "plugin_debugger"
DEBUG:  invoking IpcMemoryCreate(size=8737193984)
DEBUG:  mmap with MAP_HUGETLB failed, huge pages disabled: Cannot allocate memory
FATAL:  could not map anonymous shared memory: Cannot allocate memory
HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 8737193984 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.
DEBUG:  shmem_exit(1): 0 before_shmem_exit callbacks to make
DEBUG:  shmem_exit(1): 0 on_shmem_exit callbacks to make
DEBUG:  proc_exit(1): 2 callbacks to make
DEBUG:  exit(1)
DEBUG:  shmem_exit(-1): 0 before_shmem_exit callbacks to make
DEBUG:  shmem_exit(-1): 0 on_shmem_exit callbacks to make
DEBUG:  proc_exit(-1): 0 callbacks to make

DEBUG:  invoking IpcMemoryCreate(size=8737193984)
DEBUG:  mmap with MAP_HUGETLB failed, huge pages disabled: Cannot allocate memory
DEBUG:  SlruScanDirectory invoking callback on pg_notify/0000
DEBUG:  removing file "pg_notify/0000"
DEBUG:  dynamic shared memory system will support 128 segments
DEBUG:  created dynamic shared memory control segment 1804289383 (1036 bytes)
DEBUG:  max_safe_fds = 985, usable_fds = 1000, already_open = 5
LOG:  redirecting log output to logging collector process

数据库启动 #ifdef EXEC_BACKEND if (argc > 1 && strncmp(argv[1], "--fork", 6) == 0) SubPostmasterMain(argc, argv); /* does not return */

main --> EXEC_BACKEND SubPostmasterMain --CreateSharedMemoryAndSemaphores -- PGSharedMemoryCreate(Size size, bool makePrivate, int port, PGShmemHeader **shim)

SlruScanDirectory

共有 人打赏支持
粉丝 30
博文 468
码字总数 351660
×
MtrS
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: