select c.constraint_id from rel_constraints c where c.required_rel_segment = :segment_id