How much is the total memory allocated on the server? How much you allocated to shared_buffers? Is this server shared with any other instance or there is only one instance?
psql: error: connection to server on socket "/tmp/.s.PGSQL.5444" failed: FATAL: could not open shared memory segment "/PostgreSQL.4163887167": No such file or directory...