postgresqlHow do I check the version of PostgreSQL I am using?
To check the version of PostgreSQL you are using, you can use the SELECT
statement with the version()
function. This will return the version of PostgreSQL you are running.
For example:
SELECT version();
Output example
PostgreSQL 10.12 on x86_64-apple-darwin17.7.0, compiled by Apple LLVM version 10.0.1 (clang-1001.0.46.4), 64-bit
The code consists of:
SELECT
statement - used to select data from a databaseversion()
function - used to return the version of PostgreSQL you are running
Helpful links
More of Postgresql
- How can I set a PostgreSQL interval to zero?
- How do I install and configure PostgreSQL on a Windows machine?
- How can Zalando use PostgreSQL to improve its software development?
- How do I set the PostgreSQL work_mem parameter?
- How can I use PostgreSQL and ZFS snapshots together?
- How can I troubleshoot zero damaged pages in PostgreSQL?
- How can I use PostgreSQL's "zero if null" feature?
- How can I use PostgreSQL XML functions to manipulate XML data?
- How do I use PostgreSQL's XMIN and XMAX features?
- How do I use PostgreSQL variables in my software development project?
See more codes...