DEV Community

Marcos Silva
Marcos Silva

Posted on

Graph Database and Apache AGE

What is Apache AGE?
Apache Age is an extension to PostgreSQL that enables the use of graph databases, allowing complex and interconnected data to be modeled and queried efficiently and intuitively.

How can I install this extension?
The Github Repository of this project is Apache AGE. And you can install this extension to PostgreSQL by a few steps.

Installing Apache AGE
By the way I'm using Arch Linux for WSL and Version 12 of PostgreSQL. With your terminal, follow the scripts.

To clone the repository:
git clone https://github.com/apache/age.git
cd age

Setting the enviroment variable
export PG_CONFIG=/usr/local/pgsql-12/bin/pg_config

Install the Apache AGE
make install

Let's try it!
After run your PostgreSQL, use this command on your terminal:

CREATE EXTENSION age;
LOAD 'age';

If everything is alright your terminal will show you something like this:

postgres=# CREATE EXTENSION age;
CREATE EXTENSION
postgres=# LOAD 'age';
LOAD
postgres=#
Enter fullscreen mode Exit fullscreen mode

References:
Apache AGE
Setup Apache AGE

Top comments (0)