Display PostgreSQL/PgSQL version


To display the PostgreSQL version number (and other information like compiler version used to build PgSQL) issue the following SQL statement from within psql:

SELECT version();

To quickly determine just the PostgreSQL version number, run this command from the OS command line:

psql --version

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply

You may also like-

SQL Server 2012: Find Expiry Date of SQL serverSQL Server 2012: Find Expiry Date of SQL serverIf you have installed SQL server 2012 Enterprise Evaluation Edition, this trial software will expire after 180 days without any pre alert notification. This ... SQL Server 2005: What Service Pack is Installed?SQL Server 2005: What Service Pack is Installed?If you're running SQL Server, it's very wise to make sure that you have the latest service pack installed for optimum performance. If you're ...