Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the Postgres version

I have a doubt about my version of Postgres installed in my environment.

This is my os: CentOS Linux release 7.3.1611 (Core) In /usr/ I can see: pgsql-9.4/ folder.

But when I do: select version(); I get:

PostgreSQL 9.2.18 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 
20150623 (Red Hat 4.8.5-11), 64-bit

So, what version do I have?

like image 290
Juan Reina Pascual Avatar asked Jun 08 '17 15:06

Juan Reina Pascual


People also ask

Which version of postgres do I have?

Check Postgres Version from SQL Shell Type the following SQL statement within the prompt to check the current version: SELECT version(); The resulting output provides the full version and system information for the PostgreSQL server.

What is the latest version of psql?

2022-08-11 - PostgreSQL 14.5, 13.8, 12.12, 11.17, 10.22, and 15 Beta 3 Released! The PostgreSQL Global Development Group has released an update to all supported versions of PostgreSQL, including 14.5, 13.8, 12.12, 11.17, and 10.22, as well as the third beta release of PostgreSQL 15.

What are the different versions of PostgreSQL?

The PostgreSQL Global Development Group has announced the update versions which support our database system, with 12.3, 11.8, 10.13, 9.6. 18, and 9.5.

What version of postgres is my Pgadmin 4?

bash-4.1$ psql postgres=# SELECT version(); postgres=# SHOW server_version; To Check PostgreSQL Client Version.


2 Answers

To determine the version of the database server, use select version() (from a connection to the database):

postgres=# select version();
                                                version                                                     
----------------------------------------------------------------------------------------------------------------
 PostgreSQL 9.2.14 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16), 64-bit

To determine the version of the database client, use psql --version (from your shell command line):

$ psql --version
psql (PostgreSQL) 9.6.2

The server is where data is stored. The client is the software you use to connect to the server. They can be different versions.

like image 176
jmelesky Avatar answered Oct 21 '22 07:10

jmelesky


Simply check the version by this command: psql --version

like image 37
Ali Tourani Avatar answered Oct 21 '22 08:10

Ali Tourani