The deprecation of Puppet::Util::SUIDManager.run_and_capture occurred in puppet version 3.4.0. The comparison in the fix in PR #320 is to version 4. I have puppet 3.4.1 and I'm still receiving the warning in lib/puppet/provider/postgresql_psql/ruby.rb:79