UpgradeTopology — 将指定拓扑升级为支持大整数(int8)类型的拓扑 ID 和要素 ID。
void UpgradeTopology(name toponame);
接受一个拓扑名称,并将其升级为支持大 ID(int8)的模式,适用于拓扑 ID 和各种基础要素 ID。升级内容包括:将 face 表的 face_id 和 face_id_seq 从 int4 调整为 int8;将 node 表的 node_id、containing_face 以及 node_id_seq 从 int4 调整为 int8;将 edge_data 表中的 edge_id、start_node、end_node、left_face、right_face、next_left_edge、next_right_edge 以及序列 edge_data_edge_id_seq 全部从 int4 调整为 int8;将 relation 表中的 topogeo_id 和 element_id 从 int4 调整为 int8;最后在 topology 表中把 useslargeids 标记为 true,表示启用大 ID 支持
可用性:3.6.0
SELECT topology.upgradetopology('city_data');