age
age : AGE graph database extension
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2600 | age | age | 1.8.0 |
FEAT | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.8.0 |
18 17 16 15 14 | age |
- |
| RPM | PIGSTY | 1.8.0 |
18 17 16 15 14 | age_$v |
- |
| DEB | PGDG | 1.8.0 |
18 17 16 15 14 | postgresql-$v-age |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.8.0 | PIGSTY 1.7.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 |
| el8.aarch64 | PIGSTY 1.8.0 | PIGSTY 1.7.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 |
| el9.x86_64 | PIGSTY 1.8.0 | PIGSTY 1.7.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 |
| el9.aarch64 | PIGSTY 1.8.0 | PIGSTY 1.7.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 |
| el10.x86_64 | PIGSTY 1.8.0 | PIGSTY 1.7.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 |
| el10.aarch64 | PIGSTY 1.8.0 | PIGSTY 1.7.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 | PIGSTY 1.6.0 |
| d12.x86_64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| d12.aarch64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| d13.x86_64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| d13.aarch64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| u22.x86_64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| u22.aarch64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| u24.x86_64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| u24.aarch64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| u26.x86_64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
| u26.aarch64 | PGDG 1.8.0 | PIGSTY 1.7.0 | PGDG 1.6.0 | PGDG 1.6.0 | PGDG 1.6.0 |
Source
github.com/apache/age
age-PG18-v1.8.0-rc0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
Sources: Apache AGE repository, PG17 v1.7.0 branch, PG18 v1.7.0 branch
Apache AGE brings graph database capabilities to PostgreSQL using the openCypher query language. It enables hybrid querying that combines SQL and Cypher, property indexes on vertices and edges, and the ability to query multiple graphs.
Each session requires loading the extension:
Graph Operations
Create a graph:
Create vertices:
Create edges:
Query the graph:
Cypher Query Features
AGE supports standard Cypher clauses including MATCH, CREATE, SET, DELETE, RETURN, WITH, WHERE, ORDER BY, SKIP, and LIMIT. Data is stored using the agtype data type, which extends JSON with graph-specific types for vertices, edges, and paths.
Pattern matching with variable-length paths:
Hybrid SQL/Cypher queries allow joining graph results with relational tables:
Version Notes
Apache AGE 1.7.0 is published through PostgreSQL-major-specific branches for PostgreSQL 17 and 18. The README surface remains the same graph/Cypher workflow, with support focused on the newer PostgreSQL majors rather than PG14-16.