Support PostgreSQL peer authentication

See https://drupal.org/node/1030732#comment-7578671 for details.