跳转到主要内容
← 目录图谱 / pg_propgraph_element

SYSTEM CATALOG · 系统目录

pg_propgraph_element

The catalog pg_propgraph_element stores information about the vertices and edges of a property graph, collectively called the elements of the property graph.

首次收录 PG 19最近收录 PG 19当前字段 14

已与 PostgreSQL 19beta3 实例逐字段核对 · 原始实测记录 ↗

字段结构 PostgreSQL 19

pg_propgraph_element
字段 / COLUMN类型 / TYPE说明 / DESCRIPTION
oid oidNOT NULL Row identifier
pgepgid oidNOT NULL Reference to the property graph that this element belongs to引用:pg_class.oid
pgerelid oidNOT NULL Reference to the table that contains the data for this property graph element引用:pg_class.oid
pgealias nameNOT NULL The alias of the element. This is a unique identifier for the element within the graph. It is set when the property graph is defined and defaults to the name of the underlying element table.
pgekind "char"NOT NULL文档原写法:char v for a vertex, e for an edge
pgesrcvertexid oidNOT NULL For an edge, a link to the source vertex. (Zero for a vertex.)引用:pg_propgraph_element.oid
pgedestvertexid oidNOT NULL For an edge, a link to the destination vertex. (Zero for a vertex.)引用:pg_propgraph_element.oid
pgekey smallint[]NOT NULL文档原写法:int2[] An array of column numbers in the table referenced by pgerelid that defines the key to use for this element table. (This defaults to the primary key when the property graph is created.)引用:pg_attribute.attnum
pgesrckey smallint[]文档原写法:int2[] For an edge, an array of column numbers in the table referenced by pgerelid that defines the source key to use for this element table. (Null for a vertex.) The combination of pgesrckey and pgesrcref creates the link between the edge and the source vertex.引用:pg_attribute.attnum
pgesrcref smallint[]文档原写法:int2[] For an edge, an array of column numbers in the table reached via pgesrcvertexid. (Null for a vertex.) The combination of pgesrckey and pgesrcref creates the link between the edge and the source vertex.引用:pg_attribute.attnum
pgesrceqop oid[] For an edge, an array of equality operators for pgesrcref = pgesrckey comparison. (Null for a vertex.)引用:pg_operator.oid
pgedestkey smallint[]文档原写法:int2[] For an edge, an array of column numbers in the table referenced by pgerelid that defines the destination key to use for this element table. (Null for a vertex.) The combination of pgedestkey and pgedestref creates the link between the edge and the destination vertex.引用:pg_attribute.attnum
pgedestref smallint[]文档原写法:int2[] For an edge, an array of column numbers in the table reached via pgedestvertexid. (Null for a vertex.) The combination of pgedestkey and pgedestref creates the link between the edge and the destination vertex.引用:pg_attribute.attnum
pgedesteqop oid[] For an edge, an array of equality operators for pgedestref = pgedestkey comparison. (Null for a vertex.)引用:pg_operator.oid

标记“隐式列”的字段不包含在 SELECT * 中;部分早期统计视图由同版本源码补全,额外来源会显示在字段说明中。

通用系统列 6

PostgreSQL 提供的系统属性,通常不在 SELECT * 中展开。单独保留,不与普通字段混算。

字段类型attnum
tableoidoid-6
cmaxcid-5
xmaxxid-4
cmincid-3
xminxid-2
ctidtid-1

字段演化矩阵

悬停查看字段类型
存在新增 / 类型或属性变化移除
字段 / COLUMN9.09.19.29.39.49.59.610111213141516171819
oid
pgepgid
pgerelid
pgealias
pgekind
pgesrcvertexid
pgedestvertexid
pgekey
pgesrckey
pgesrcref
pgesrceqop
pgedestkey
pgedestref
pgedesteqop

9.0 是收录基线;基线中已存在的字段不标记为新增。矩阵按字段名称对齐,重命名显示为旧字段移除与新字段新增。

演化时间线

相邻大版本的变化

PostgreSQL 19 ← 18新增目录

+ oid+ pgepgid+ pgerelid+ pgealias+ pgekind+ pgesrcvertexid+ pgedestvertexid+ pgekey+ pgesrckey+ pgesrcref+ pgesrceqop+ pgedestkey+ pgedestref+ pgedesteqop

比较任意两个版本

选择两个版本,查看字段的新增、移除与类型变化。交互比较需要 JavaScript;演化时间线可直接阅读。