Skip to content

pg_igraph

High-performance graph traversal engine with JSON parameters and multi-graph support

pg_igraph · High-performance graph traversal engine with JSON parameters and multi-graph support

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101558pg_igraphpg_igraph1.1FEATMITC

Usage

Sources:

pg_igraph — High-Performance Graph Traversal Engine for PostgreSQL. Use it when an application needs this specific database capability. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pg_igraph;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • graph_add_complex_field(type_id SMALLINT, pos SMALLINT, field_name TEXT) is an extension function and returns VOID.
  • graph_add_complex_type(type_name TEXT) is an extension function and returns SMALLINT.
  • graph_add_edge(from_id BIGINT, to_id BIGINT, rel_name TEXT) is an extension function and returns VOID.
  • graph_add_edge(from_id BIGINT, to_id BIGINT, rel_name TEXT, table_prefix TEXT DEFAULT '') is an extension function and returns VOID.
  • graph_add_edge(from_id INT, to_id INT, rel_name TEXT) is an extension function and returns VOID.
  • graph_add_edge(from_id INT, to_id INT, rel_name TEXT, table_prefix TEXT DEFAULT '') is an extension function and returns VOID.
  • graph_add_node(label_name TEXT) is an extension function and returns BIGINT.
  • graph_add_node(label_name TEXT, table_prefix TEXT DEFAULT '') is an extension function and returns BIGINT.
  • graph_delete_node(node_id BIGINT) is an extension function and returns VOID.
  • graph_delete_node(node_id BIGINT, table_prefix TEXT DEFAULT '') is an extension function and returns VOID.
  • graph_delete_node(node_id INT) is an extension function and returns VOID.
  • graph_delete_node(node_id INT, table_prefix TEXT DEFAULT '') is an extension function and returns VOID.
  • graph_delete_property(node_id BIGINT, prop_name TEXT) is an extension function and returns VOID.
  • graph_delete_property(node_id INT, prop_name TEXT) is an extension function and returns VOID.

Requirements and Caveats

  • The reviewed control file declares default version 1.1.
  • The control file marks the extension as relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader