Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of PostgreSQL am I running?

I'm in a corporate environment (running Debian Linux) and didn't install it myself. I access the databases using Navicat or phpPgAdmin (if that helps). I also don't have shell access to the server running the database.

like image 509
Highly Irregular Avatar asked Oct 15 '22 09:10

Highly Irregular


People also ask

What version of postgres am I running?

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.

How can I tell if postgres is running?

basically just type "systemctl status postgresql-xx" where xx is the version of your PostgreSQL instance. ex: systemctl status posgresql-10. 2. There can be situations where you don't remember which version of postgres you installed and checking the service status just doesn't work.

What is the postgres latest version?

The Global development group has released several versions of PostgreSQL. The latest version of PostgreSQL version is 12.3.


1 Answers

Run this query from PostgreSQL:

SELECT version();
like image 1936
Highly Irregular Avatar answered Oct 17 '22 23:10

Highly Irregular