pgmer2
pgmer2 · PostgreSQL connector for the MeritRank graph ranking service
Overview
PostgreSQL · 17
Usage
Sources:
- Connector README at the reviewed commit
- SQL function implementation
- RPC client implementation
- Cargo metadata
pgmer2 connects SQL sessions to a separately running MeritRank graph-ranking service. Set MERITRANK_SERVICE_URL in the PostgreSQL server environment before backend startup; the default is tcp://127.0.0.1:8080.
The API manages graph contexts and edges, calculates scores, lists nodes and neighbors, and supports bulk loading through mr_bulk_load_edges. The service is external state: deploy, secure, monitor, and back it up independently of PostgreSQL.
Current transport is unencrypted TCP with a custom binary protocol and no authentication shown in the connector. Several read functions that perform network calls are declared IMMUTABLE, which can permit PostgreSQL to reuse or fold results despite changing remote state. Restrict execution, isolate the service network, and do not rely on ordinary SQL volatility or transaction semantics for remote changes.