↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Information Functions And Operators

Returns a string describing the PostgreSQL server's version.

Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20

Signatures & examples

version () → text
Returns a string describing the PostgreSQL server's version. You can also get this information from server_version, or for a machine-readable version use server_version_num. Software developers should use server_version_num (available since 8.2) or PQserverVersion instead of parsing the text version.
Version history 5
  1. 12 → 13 changed
  2. 9.4 → 9.5 changed
  3. 7.4 → 8.0 changed
  4. 7.2 → 7.3 changed
  5. 7.1 → 7.2 added

Definition snapshot: b7bd9cda · English manual source