PostgreSQL 19 ← 18新增目录
+ oid+ pgepgid+ pgerelid+ pgealias+ pgekind+ pgesrcvertexid+ pgedestvertexid+ pgekey+ pgesrckey+ pgesrcref+ pgesrceqop+ pgedestkey+ pgedestref+ pgedesteqop
SYSTEM CATALOG · 系统目录
The catalog pg_propgraph_element stores information about the vertices and edges of a property graph, collectively called the elements of the property graph.
已与 PostgreSQL 19beta3 实例逐字段核对 · 原始实测记录 ↗
| 字段 / 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 * 中;部分早期统计视图由同版本源码补全,额外来源会显示在字段说明中。
PostgreSQL 提供的系统属性,通常不在 SELECT * 中展开。单独保留,不与普通字段混算。
| 字段 | 类型 | attnum |
|---|---|---|
tableoid | oid | -6 |
cmax | cid | -5 |
xmax | xid | -4 |
cmin | cid | -3 |
xmin | xid | -2 |
ctid | tid | -1 |
9.0 是收录基线;基线中已存在的字段不标记为新增。矩阵按字段名称对齐,重命名显示为旧字段移除与新字段新增。
PostgreSQL 19 ← 18新增目录
选择两个版本,查看字段的新增、移除与类型变化。交互比较需要 JavaScript;演化时间线可直接阅读。