On Ubuntu 12.04 i do have two psql one of those isn't working

Поиск
Список
Период
Сортировка
От Yvon Thoraval
Тема On Ubuntu 12.04 i do have two psql one of those isn't working
Дата
Msg-id CAG6bkBy4WnespWg75TgKN7pzOkgiJw6EMqG_QLVTkk05_a7w1Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: On Ubuntu 12.04 i do have two psql one of those isn't working  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general

I'm testing my second PostgreSQL install on Xunutu 12.04 after a disk crash.

Everything went well using command line where i was able, after config and setup, to log into a db using :
$ psql <IPV4 or IPV6 of the server> -U yt -d yt_tests

Then i wanted to test postgres thru php where i got Http error 500.

After that i discovered that i do have TWO psql installed :

the first :
lrwxrwxrwx 1 root root 37 mars   6  2012 /usr/bin/psql -> ../share/postgresql-common/pg_wrapper 

the second :
-rwxr-xr-x 1 root root 433224 août  17 00:58 /usr/lib/postgresql/9.1/bin/psql


the first is working not the second :

yt@D620 $ sudo -s -u postgres
[sudo] password for yt:
zsh: locking failed for /home/yt/.zsh_history: permission non accordée: reading anyway

using the first one :
postgres@D620 $ /usr/bin/psql
psql (9.1.5)
Type "help" for help.

postgres=# \q


using the second :
postgres@D620 $ /usr/lib/postgresql/9.1/bin/psql
psql: server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
could not send startup packet: Relais brisé (pipe)
zsh: exit 2     /usr/lib/postgresql/9.1/bin/psql


then, i wonder how to workaround this "installation bugg" because i suspect php is using the second not working psql where the first is the one being in my PATH.
--
Yvon


В списке pgsql-general по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Index creation takes more time?
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: SQLSTATE[08006] [7] server closed the connection unexpectedly