May 2018
Intermediate to advanced
576 pages
30h 25m
English
Some other ways of checking the version number are as follows:
bash # psql --versionpsql (PostgreSQL) 10.2
However, be wary that this shows the client software version number, which may differ from the server software version number. You should check the server version directly by using the following command:
bash # cat $PGDATA/PG_VERSION
Here, you must set PGDATA to the actual data directory. Refer to the Locating the database server files recipe for more information.
Notice that the preceding command does not show the maintenance release number.