I am running the AWS AMI from gitlab. I am trying to access the postgres database directly using psql. I thought I could just use the credentials in database.yml, since the rail
su - git
/opt/gitlab/embedded/bin/psql -U gitlab -d gitlabhq_production -h /var/opt/gitlab/postgresql
works for me with gitlab-ce and the embedded postgres. Optional for better interactive working start a bash as git. The (unix)-user git seems to be a peer to the postgresuser gitlab, authenticates without a password (/var/opt/gitlab/postgresql/data/pg_hba.conf).