Pgsql provider patches

See COOK-3761

https://tickets.opscode.com/browse/COOK-3761