May 2019
Intermediate to advanced
600 pages
20h 46m
English
Unfortunately, there isn't a single function or parameter that works on each variant of PostgreSQL and at the same time is able to answer that question. The closest you can get is the version() function that is used in the next recipe, What version is the server?, which returns a textual description of the version you are running, including (but not limited to) the version number.
In some cases, this is enough, but otherwise, you have to determine the specific version from other clues, such as the following:
Read now
Unlock full access