我想迁移 AgnsGraph 的所有图表和标签。
如何在 AgensGraph 上查找所有图形和标签?
AgensGraph 上是否有特殊表格?
使用 AG_GRAPH 和 AG_LABEL 表列出图形和标签
agens=# SELECT GRAPHNAME, GRAPHID, LABID, LABNAME, LABKIND
agens-# FROM AG_LABEL, PG_DEPEND, AG_GRAPH
agens-# WHERE GRAPHID = REFOBJID AND OBJID = NSPID
agens-# ORDER BY GRAPHID, LABID;
graphname | graphid | labid | labname | labkind
-----------+---------+-------+-----------+---------
graph1 | 31830 | 1 | ag_vertex | v
graph1 | 31830 | 2 | ag_edge | e
graph1 | 31830 | 3 | v | v
graph1 | 31830 | 4 | e | e
graph2 | 31863 | 1 | ag_vertex | v
graph2 | 31863 | 2 | ag_edge | e
graph2 | 31863 | 5 | v | v
graph2 | 31863 | 6 | e | e
graph | 39226 | 1 | ag_vertex | v
graph | 39226 | 2 | ag_edge | e
graph | 39226 | 3 | v | v
(11 rows)