FreeBSD Jail PostgreSQL
If you want to run PostgreSQL under FreeBSD in a jailed environment you have to change some variables to be able to run PostgreSQL if you see the following error during PostgreSQL startup:
not create shared memory segment: Function not implemented DETAIL: Failed system call was shmget(key=1, size=1327104, 03600).
Step 1. On your host, you have add the following line to your /etc/sysctl.conf