chown postgres /etc/ssl/private/ssl-cert-snakeoil.key
chgrp postgres /etc/ssl/private/ssl-cert-snakeoil.key
chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key
service postgresql start
chown postgres /etc/ssl/private/ssl-cert-snakeoil.key
chgrp postgres /etc/ssl/private/ssl-cert-snakeoil.key
chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key
service postgresql start