Here's my situation: I have two versions of PostgreSQL installed on my CentOS system, and with the two versions come two different psql
interactive terminals.
One is located at /usr/bin/psql
, and starts when I run psql -U username
Another newer one is located at /usr/pgsql-9.1/bin/psql
.
I want the newer one to start by default when I run psql
from the command line. How can this be done?
/usr/bin/psql
if you are on any distro other than maybe slackware. It will get replaced when an update to the postgresql packages are applied. It's a really, really, bad idea. Change yourPATH
instead. – Jul 21 '12 at 01:29