puppetlabs/puppetlabs-postgresql — pull request #422 by dvorak (2014-05-23 21:10:51+00:00)
Title: Ensure db user exists before validating db connection

The validate_db_connection class takes a user to connect as, but if we're
using the progresql::server::db defined type then the user might not be
created yet, and might not have any permissions granted yet. This patch
uses a collector to ensure that the that the user and grants are active
before validating.