Fixing the postgresql initdb fatal shared memory error on Leopard When doing the post-install setup of postgresql default database using initdb, you may hit this error: FATAL: could not create shared memory segment: Cannot allocate memory DETAIL: Failed system call was shmget(key=1, size=1646592, 03600).You can either change the postgresql configuration to use less shared memory, or increase the s