From f07fab1a9f09ccbbe55d23f16fcdaa30f73cc0a0 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Tue, 24 May 2011 11:42:43 +0200 Subject: [PATCH] select only needed columns --- lib/pg_ldap_sync/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pg_ldap_sync/application.rb b/lib/pg_ldap_sync/application.rb index 7a480c7..a29b44d 100644 --- a/lib/pg_ldap_sync/application.rb +++ b/lib/pg_ldap_sync/application.rb @@ -109,7 +109,7 @@ class Application pg_users_conf = @config[:pg_users] users = [] - res = @pgconn.exec "SELECT * FROM pg_roles WHERE #{pg_users_conf[:filter]}" + res = @pgconn.exec "SELECT rolname FROM pg_roles WHERE #{pg_users_conf[:filter]}" res.each do |tuple| user = PgRole.new tuple['rolname'] log.info{ "found pg-user: #{user.name}"}