postgresql7.1 select count(*) from dual where acs_permission__permission_p(:object_id, :user_id, :privilege) = 't' select acs_object__name(:object_id)