zotonic/zotonic — pull request #897 by ddeboer (2014-12-23 11:40:59+00:00)
Title: Connect to "postgres" when creating database

Otherwise, PostgreSQL will try to connect to a database with the same
name as the user. If this database does not exist, pgsql will fail with
`<<"database \"some_user\" does not exist">>,[]}}`. A simple solution
is to connect to the postgres database instead, which should always
exist.