Introduce proc_merge_good sql.