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_versionnumeric form source). - PG_
COMPAT_ VERSION_ NUM server_version_numvalue: MAJOR10000 + MINOR100 + PATCH (15.0 -> 150000).
Functions§
- server_
version_ string - PostgreSQL-compatible
server_versionvalue 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.