PostgreSQL on Docker部署是的shm配置注意

标签

PostgreSQL , docker , shm , 动态共享内存

背景

如果你使用docker启动PG时,遇到类似这样的问题,可能你需要看看docker的/dev/shm是不是不够大。

"ERROR: could not resize shared memory segment "/PostgreSQL.388782411" to 50438144 bytes: No space left on device SQL state: 53100"  

调整docker启动参数–shm-size

Thank you Thomas,   
  
I make it work with extra setting --shm-size=1g in my docker run script.   
  
  
It works with 
点赞