I ran initdb, tried to create a new superuser with createuser -sdrP myuser
The error I'm getting is
createuser: could not connect to database postgres: FATAL: semctl(3342342, 3, SETVAL, 0) failed: Invalid argument
I can't find anything about this anywhere on the internet. I've tried deinstalling, removing the data directory, and trying again but no dice. I'm at my wits end.
I'm running inside a jail, which is running FreeBSD 9.2-RELEASE-p10. And yes, I've set allow.sysvipc=1