select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

CONFIGURATION / PRESET OPTIONS

server_version

Read PG 18 manual ↗

Reports the version number of the server.

Type
string
Context
internal
Measured default
18.6 (Debian 18.6-1.pgdg13+2)
Unit
Metadata snapshot
18

Definition PG 18 manual

Reports the version number of the server. It is determined by the value of PG_VERSION when building the server.

Measured default history
Version intervalDefault
9.0 – 9.09.0.23
9.1 – 9.19.1.24
9.2 – 9.29.2.23
9.3 – 9.39.3.25
9.4 – 9.49.4.26
9.5 – 9.59.5.25
9.6 – 9.69.6.24
10 – 1010.23 (Debian 10.23-1.pgdg110+1)
11 – 1111.22 (Debian 11.22-1.pgdg120+1)
12 – 1212.22 (Debian 12.22-1.pgdg120+1)
13 – 1313.23 (Debian 13.23-1.pgdg13+1)
14 – 1414.24 (Debian 14.24-1.pgdg13+2)
15 – 1515.19 (Debian 15.19-1.pgdg13+2)
16 – 1616.15 (Debian 16.15-1.pgdg13+2)
17 – 1717.11 (Debian 17.11-1.pgdg13+2)
18 – 1818.6 (Debian 18.6-1.pgdg13+2)
19 – 1919beta3 (Debian 19~beta3-1.pgdg13+1)
Analysis & operational context

Authored guidance from the GUC source snapshot; the version-specific manual above is the definition reference. View source ↗

How it works

Shows the server version. It is read-only and cannot be changed with SET or configuration-file edits.

It is the human-readable server build/version string and may include vendor packaging text; it is not safe for numeric ordering.

Interpret it with server_version_num, server_encoding, ssl_library. Applications and operations tooling may read server_version for capability or environment detection, but cannot SET it; cross-cluster comparisons must account for build, initdb, and current-database differences.

Operational considerations

Trying to change read-only server_version with SET or a configuration file.

Assuming every cluster, database, or vendor build reports the same value.

Ignoring the value in file-format or feature-compatibility checks.

Treating reported metadata as a performance target instead of an environment fact.

Workload guidance

OLAP: Not tunable. Use server_version to verify format, build, or resource assumptions on analytical nodes and keep every read/write candidate compatible.

OLTP: Not tunable. Record server_version as a deployment/capability fact; if it is unexpected, fix the binary, initdb, or database-creation process rather than trying SET.

SMALL: Not tunable. Preserve it in inventory and incident reports; do not custom-build or rebuild merely to change it without a demonstrated compatibility need.

Version history 16
  1. PG 18 → 19changed
  2. PG 17 → 18changed
  3. PG 16 → 17changed
  4. PG 15 → 16changed
  5. PG 14 → 15changed
  6. PG 13 → 14changed
  7. PG 12 → 13changed
  8. PG 11 → 12changed
  9. PG 10 → 11changed
  10. PG 9.6 → 10changed
  11. PG 9.5 → 9.6changed
  12. PG 9.4 → 9.5changed
  13. PG 9.3 → 9.4changed
  14. PG 9.2 → 9.3changed
  15. PG 9.1 → 9.2changed
  16. PG 9.0 → 9.1changed

Related entries

Further reading

Definition snapshot: english-manuals:a811473bd959bff8bab657c5386… · English manual source