After starting the Postgres server process for a cluster:
bin/pg_ctl -D demo -l logfile start
Starting a process for a database ‘demo’:
bin/psql demo
When I try to load AGE extension by
LOAD ‘age’;
It shows error that access to ‘age’ is denied.
Do I need to change some security/credential information for the user?
I expected the extension to be loaded so that I can execute cypher queries.
3
Answers
Run install check to see if postgresql and Apache AGE have been sucessfully installed without any error using the command in the age folder:
and if this is the case then you have to create an extension of age and then load as follows:
Now set Search Path and run a simple cypher query:
To load the APACHE AGE extension, run the following commands after successful installation (verify using installcheck):
Create a graph using:
To avoid running the load command each time, set the required parameters in the postgresql.conf file:
Locate the file at database_name/postgresql.conf (in your case,
it would be demo/postgresql.conf)
Add the following lines to the file:
You might need superuser privileges as described here in order to execute the CREATE EXTENSION statement.
Here’s a possible relevant issue with a solution in GitHub issues