November 2015
Beginner
464 pages
9h 46m
English
The PostgreSQL version allows the developer to know the supported features and helps them 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.
Getting the database and build version right is important because it allows the developer to know the supported features and compatibility between client tools and the backend version.
The version() function, as shown in the following query, shows the version information as well as build system:
car_portal=# SELECT version (); version ------------------------------------------------------------- ...
Read now
Unlock full access