Skip to content

opencog/atomspace-pgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AtomSpace Postgres StorageNode

CircleCI

Save and restore AtomSpace contents as well as individual Atoms to a PostgreSQL database. Implements the PostgresStorageNode specialization of the Atomese base type StorageNode.

Status

This is Version 5.1.0

Deprecated -- This repo is a copy of the old Postgres storage implementation. It works "fine", it passes unit tests. It's 100% compatible with what it always was -- It's just a copy of that old code. However, years of experience have revealed that the design is not all that great. A new Postgres backend should be written, based on the RocksStorageNode, in the atomspace-rocks git repo.

Some missing features include:

  • Frames (multiple nested AtomSpaces)

Building and Installing

The build and install of atomspace-pgres follows the same pattern as other AtomSpace projects.

Postgres is a prerequisite. On Debian/Ubuntu, apt install postgresql postgresql-client libpq-dev Then build, install and test:

    cd to project dir atomspace-pgres
    git checkout master
    git pull
    rm -r build
    mkdir build
    cd build
    cmake ..
    make -j
    make -j check
    sudo make install

Example Usage

See the examples directory in the main AtomSpace repo, here and look for examples that contain the word Storage. There are half-a-dozen of these.

Design

Old design notes and a performance diary can be found in the source tree.

About

Postgres StorageNode for the AtomSpace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published