VERSION
VERSION()
Section titled “VERSION()”Example
Section titled “Example”SELECT VERSION();Output
Section titled “Output”"PostgreSQL 13.2, compiled by Visual C++ build 1914, 64-bit"Explanation
Section titled “Explanation”The VERSION() function in PostgreSQL is executed to get the details of the version of the currently running PostgreSQL database. The output string includes the PostgreSQL version along with some additional information such as build type and platform details.