The FreeBSD kernel has a limit of 60 semaphores out of the box, so postgres
can't have 512 connections out of the box on Gentoo/FreeBSD.
This causes postgresql to fail silently and one must tweak the postgresql
startup file inorder to even get an error message. (remove the
--silent-mode=true part of the startup script).
# sysctl -a|grep -i semmns
kern.ipc.semmns: 60
# diff /etc/conf.d/postgresql.orig /etc/conf.d/postgresql
15c15
< PGOPTS="-N 512 -B 1024"
---
> PGOPTS="-N 40 -B 1024"
Reproducible: Always