Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postgresql binaries and directories

Status
Not open for further replies.

keith284

Technical User
Jul 13, 2007
5
CA
I've removed postgresql-8.1 and installed postgresql-8.2.4

however each time I type psql as a non-postgres user, it still looks for the 8.1 binary file. If I switch to the postgres user and execute psql, all is fine. Does anyone know how to fix this?


root@bla:/tmp # psql -l
bash: /usr/lib/postgresql/8.1/bin/psql: No such file or directory
root@bla:/tmp # su - postgres
postgres@bla:~$ psql -l
List of databases
Name | Owner | Encoding
------------+----------+-----------
postgres | postgres | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
(3 rows)

postgres@bla:~$

Thank you in advance,
 
Thanks stefanwagner.

A colleague of mine later found out that I was aliasing psql from .bashrc >_<; now I feel very VERY stupid.
 
Hi

Then another useful command for next time in such situation :
Code:
[blue]master #[/blue] type psql
psql is /usr/bin/psql

[gray]# or[/gray]

[blue]master #[/blue] type psql
psql aliased to `psql --nasty-parameter'

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top