AgensGraph 2.18 Built on PostgreSQL 18.6 with Enhanced Features
AgensGraph 2.18 is built on PostgreSQL 18.6, enabling SQL and graph queries in the same transaction and incorporating features like asynchronous I/O, uuidv7(), and pgvector for vector similarity search.
AgensGraph 2.18 and PostgreSQL 18 Integration
AgensGraph 2.18 is now built on PostgreSQL 18.6, enabling seamless integration of SQL and graph queries within the same transaction and statement. This version incorporates PostgreSQL 18.6 features such as asynchronous I/O, uuidv7(), virtual generated columns, OAuth authentication, and B-tree skip scan. With the addition of the pgvector extension (installed separately), AgensGraph 2.18 allows graph data and vector embeddings to coexist in the same database, enabling queries that combine graph traversal with vector similarity search. These capabilities are based on PostgreSQL 18.6 and are available through the AgensGraph project.
ISO GQL and openCypher Support in AgensGraph 2.18
AgensGraph 2.18 introduces expanded support for ISO GQL, marking a significant advancement in aligning with the international standard query language for property graphs (ISO/IEC 39075). This release adds the first set of GQL clauses alongside openCypher, as noted by the developers, with further enhancements planned for future versions. Key features include graph subqueries such as CALL { }, OPTIONAL CALL, EXISTS { }, COUNT { }, COLLECT { }, and VALUE { }, as well as CALL ..., which enable more complex and expressive graph operations. These additions reflect AgensGraph’s ongoing commitment to supporting both ISO GQL and openCypher, providing users with greater flexibility in querying and managing graph data on PostgreSQL 18.
Performance Improvements in AgensGraph 2.18
AgensGraph 2.18 introduces performance improvements that significantly enhance graph query execution. On the public soc-Pokec graph (30 million edges), a two-hop traversal that did not finish within 20 seconds in tests on version 2.17 now completes in milliseconds, according to PostgreSQL. The release also supports faster graph queries, including variable-length traversals, pattern matching, label scans, and the use of EXISTS subqueries, path functions, sorting, grouping, and counting of vertices and edges, as noted in PostgreSQL. Additionally, typed property columns allow frequently queried properties to be stored as native typed columns and indexed like any other PostgreSQL column, enabling faster filtering and sorting, as stated in PostgreSQL.
AI and Python Integrations in AgensGraph 2.18
The AgensGraph 2.18 release introduces significant AI and Python integrations, enhancing its capabilities as a graph database built on PostgreSQL 18. The agensgraph-python 2.1 driver, now rebuilt on psycopg 3, offers improved performance and compatibility with modern Python environments. Additionally, the new agensgraph-ai package enables developers to build advanced graph-based AI applications, including GraphRAG and knowledge-graph systems, using frameworks like LangChain, LlamaIndex, LightRAG, and cognee. It also supports Model Context Protocol (MCP) servers, allowing AI assistants to interact with graph data more effectively. Furthermore, with the pgvector extension (installed separately), AgensGraph now supports the coexistence of graph data and vector embeddings within the same database, enabling queries that combine graph traversal with vector similarity search.
Upgrading to AgensGraph 2.18
Upgrading to AgensGraph 2.18 requires careful attention to compatibility. A 2.17 data directory cannot be used directly with 2.18. Users must either use pg_upgrade or dump their data using the 2.18 version of pg_dump and then restore it. For installations already on 2.18.6.0, the process is simpler: only the binaries need to be replaced, followed by a restart. These steps ensure a smooth transition while maintaining data integrity. As with any major upgrade, it is recommended to review the official documentation and test the upgrade in a non-production environment before applying it to live systems.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.