postgresql7.1 select ttl_top_privilege_for_object(:package_id, :user_id) as privilege