Summary
The catalog pg_propgraph_element stores information about the vertices and edges of a property graph, collectively called the elements of the property graph.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_propgraph_element system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierpgepgidoidreferencespg_class.oid
Reference to the property graph that this element belongs topgerelidoidreferencespg_class.oid
Reference to the table that contains the data for this property graph elementpgealiasname
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.pgekindchar
v for a vertex, e for an edgepgesrcvertexidoidreferencespg_propgraph_element.oid
For an edge, a link to the source vertex. (Zero for a vertex.)pgedestvertexidoidreferencespg_propgraph_element.oid
For an edge, a link to the destination vertex. (Zero for a vertex.)pgekeyint2[]referencespg_attribute.attnum
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.)pgesrckeyint2[]referencespg_attribute.attnum
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.pgesrcrefint2[]referencespg_attribute.attnum
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.pgesrceqopoid[]referencespg_operator.oid
For an edge, an array of equality operators for pgesrcref = pgesrckey comparison. (Null for a vertex.)pgedestkeyint2[]referencespg_attribute.attnum
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.pgedestrefint2[]referencespg_attribute.attnum
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.pgedesteqopoid[]referencespg_operator.oid
For an edge, an array of equality operators for pgedestref = pgedestkey comparison. (Null for a vertex.)
Related catalogs
This object references the following other system catalogs:
pgepgid→pg_classpgekey→pg_attributepgesrceqop→pg_operator
Version applicability
Present in PostgreSQL 19 (verified against each release’s documentation). This object was introduced in PostgreSQL 19.
Related & references
Reference: PostgreSQL documentation — pg_propgraph_element.