PostgreSQL 19 ← 18Catalog added
SYSTEM CATALOG · 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.
Checked column by column against a PostgreSQL 19beta3 instance · Raw measurement record ↗
Columns 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 toReferences:pg_class.oid |
pgerelid |
oidNOT NULL |
Reference to the table that contains the data for this property graph elementReferences: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 NULLDocumented as: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.)References:pg_propgraph_element.oid |
pgedestvertexid |
oidNOT NULL |
For an edge, a link to the destination vertex. (Zero for a vertex.)References:pg_propgraph_element.oid |
pgekey |
smallint[]NOT NULLDocumented as: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.)References:pg_attribute.attnum |
pgesrckey |
smallint[]Documented as: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.References:pg_attribute.attnum |
pgesrcref |
smallint[]Documented as: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.References:pg_attribute.attnum |
pgesrceqop |
oid[] |
For an edge, an array of equality operators for pgesrcref = pgesrckey comparison. (Null for a vertex.)References:pg_operator.oid |
pgedestkey |
smallint[]Documented as: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.References:pg_attribute.attnum |
pgedestref |
smallint[]Documented as: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.References:pg_attribute.attnum |
pgedesteqop |
oid[] |
For an edge, an array of equality operators for pgedestref = pgedestkey comparison. (Null for a vertex.)References:pg_operator.oid |
Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.
Common system columns 6
System attributes PostgreSQL provides, normally not expanded by SELECT *. Kept separately so they are not mixed in with ordinary columns.
| Columns | Type | attnum |
|---|---|---|
tableoid | oid | -6 |
cmax | cid | -5 |
xmax | xid | -4 |
cmin | cid | -3 |
xmin | xid | -2 |
ctid | tid | -1 |
Column evolution matrix
Hover a cell for the column type9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.
Evolution timeline
Changes between adjacent majorsCompare any two versions
Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.