I recently started a job as a PostgreSQL DBA and wanted to setup a virtual machine at home similar to what I'll be working with so I can start to play around with the system. I setup a CentOS 7 virtual machine and installed PostgreSQL 12 using the instructions at https://computingforgeeks.com/how-to-install-postgresql-12-on-centos-7/
I appear to have been successful and was able to start up the service with no problem using systemctl start postgresql-12.service
, however when I run psql --version
I get a response of 9.2.24. yum list postgres* | more
does show 9 different entries installed, postgresql*, postgresql11*, and postgresql12*, 3 from each.
How can I ensure that when I run psql it launches the version 12, or is there another way I can get into psql12?