January 2019
Beginner
556 pages
14h 19m
English
The PostgreSQL version allows the user to know the supported features and helps them to write compatible SQL queries for different versions. For example, the process ID attribute name in the pg_stat_activity view in PostgreSQL versions older than 9.2 is procpid; in PostgreSQL version 9.2, this attribute name is pid.
In addition, the version information provides compatibility information to client tools and the backend version. To get the database cluster, you can use the version function as follows:
postgres=# SELECT VERSION (); version ------------------------------------------------------------------------------------------------------------------ PostgreSQL 11rc1 on x86_64-pc-linux-gnu, ...
Read now
Unlock full access