Skip to Content
PostgreSQL 10 Administration Cookbook - Fourth Edition
book

PostgreSQL 10 Administration Cookbook - Fourth Edition

by Simon Riggs, Gianni Ciolli
May 2018
Intermediate to advanced content levelIntermediate to advanced
576 pages
30h 25m
English
Packt Publishing
Content preview from PostgreSQL 10 Administration Cookbook - Fourth Edition

There's more…

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.

Why is the database version important?PostgreSQL has internal version numbers for the data file format, database catalog layout, and crash recovery format. Each of these is checked ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PostgreSQL 13 Cookbook

PostgreSQL 13 Cookbook

Vallarapu Naga Avinash Kumar
PostgreSQL 9 Administration Cookbook - Second Edition

PostgreSQL 9 Administration Cookbook - Second Edition

Simon Riggs, GIANNI CIOLLI, Hannu Krosing, Gabriele Bartolini

Publisher Resources

ISBN: 9781788474924Supplemental Content