Skip to main content

Module pg_compat

Module pg_compat 

Source
Expand description

PostgreSQL wire-compatibility version constants. NodeDB advertises compatibility with a fixed PostgreSQL major so libpq-based clients gate features correctly. These are the single source of truth for version(), the server_version_num runtime parameter, and startup ParameterStatus.

Constants§

PG_COMPAT_VERSION
PostgreSQL version NodeDB advertises compatibility with (server_version numeric form source).
PG_COMPAT_VERSION_NUM
server_version_num value: MAJOR10000 + MINOR100 + PATCH (15.0 -> 150000).

Functions§

server_version_string
PostgreSQL-compatible server_version value announced during pgwire startup and exposed through runtime settings. libpq parses the leading numeric version; the suffix preserves NodeDB’s build identity.
version_string
The string returned by the SQL version() function, mirroring PostgreSQL’s "PostgreSQL <ver> on <triple> ..." shape so clients that parse the leading "PostgreSQL <major>" succeed.