postgresql 7.2 select fs.object_id as fs_object_id, fs.type, fs.name, fs.parent_id, acs_permission__permission_p(fs.object_id, :user_id, 'delete') as delete_p from fs_objects fs where fs.object_id in ('$object_id_list')