我想迁移AgensGraph的所有图形和标签。
如何在AgensGraph上查找所有图形和标签?
AgensGraph上有特殊的表格吗?
答案 0 :(得分:0)
使用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)