talira

Apache AGE

Graph database for PostgreSQL

open sourceApache-2.0self-hostablefree

Apache AGE is a PostgreSQL extension that adds graph database features to an existing Postgres database. Graphs of nodes and edges with properties live alongside relational tables, and openCypher queries run inside a cypher() function call in SQL, so one query can combine graph traversal (variable-length paths, edge traversal) with relational data. Cypher queries go through Postgres's own planner and executor and its transactional (ACID) storage. It's an Apache Software Foundation top-level project since May 2022, with releases built for each supported PostgreSQL version.

Problems it solves

  • add graph queries to our existing Postgres database instead of running Neo4j as well
  • query relationships with Cypher and join the results with ordinary SQL tables
  • store a knowledge graph in PostgreSQL for a RAG app
  • find multi-hop paths between records in Postgres without recursive CTEs

Features

  • openCypher queries inside PostgreSQL
  • hybrid queries mixing Cypher and SQL
  • nodes and edges with properties
  • variable-length path and edge traversal
  • runs on Postgres's ACID transactions
  • builds for each supported PostgreSQL version

Alternatives

The same job

These do what Apache AGE does.

  1. Neo4j The knowledge layer that makes AI accurate
  2. FalkorDB Graph database on sparse matrices for GraphRAG, queried with OpenCypher
  3. HydraDB Graph database on object storage, and a knowledge and memory layer for AI agents
  4. SurrealDB A multi-model database built in Rust that unifies document, graph, relational, time-series, geospatial and key-value data
  5. ArcadeDB Open source multi-model database for graphs, documents, key/value, search, vectors and time series, with a built-in MCP server
  6. Dgraph High-performance graph database for real-time use cases

Compare Apache AGE with the top 3