postgresql7.1 select acs_group__delete(:id) select coalesce((select 'f' where exists ( select 1 from acs_rels where object_id_one = :id and rel_type in ('composition_rel', 'membership_rel'))), 't') as is_empty