UPDATE gp_subscription
SET resource_catalog_code_key = c.code_key,
resource_catalog_name = c.NAME,
resource_name = c.resource_name,
catalog_format_type = c.catalog_format_type
FROM
gp_resource_catalog c
WHERE
gp_subscription.resource_catalog_id = c.ID
update dlv_cloud_host
set cpu_core_number = c.num_cpu
from prc_pri_vm c
where dlv_cloud_host.vm_id = c.id