Check the service of PostgreSQL Database Server. To grasp on how to do it, just read the article titled ‘Check PostgreSQL Service Status’ in this link.
After everything has already been checked, mainly the PostgreSQL Database Server installation, the service itself also has already running properly, the process for checking the version can be performed.
So, just type either ‘psql –version’ or ‘psql -V’ to be able to see the version of the running PostgreSQL Database Server. It is done in the environment of operating system which has a CLI (Command Line Interface). So, in order to be able to check it, just access terminal or any utility available for executing the command on checking the PostgreSQL Database Server.
The execution of the command for checking the version of PostgreSQL doesn’t depend on the version of the PostgreSQL itself. It is already become the default parameter and argument provided. To be able to see all of the available parameter and argument which can be used by executing the ‘psql’ command, just type ‘psql –help’.
psql is the PostgreSQL interactive terminal.