Re: On Ubuntu 12.04 i do have two psql one of those isn't working - Mailing list pgsql-general

From Yvon Thoraval
Subject Re: On Ubuntu 12.04 i do have two psql one of those isn't working
Date
Msg-id CAG6bkBx4W73gyG+AuKROSQhLBCpRpSQKouoFB6Dsaa-S_RmFUw@mail.gmail.com
Whole thread Raw
In response to Re: On Ubuntu 12.04 i do have two psql one of those isn't working  (Raymond O'Donnell <rod@iol.ie>)
Responses Re: On Ubuntu 12.04 i do have two psql one of those isn't working  (Raymond O'Donnell <rod@iol.ie>)
List pgsql-general


2012/9/17 Raymond O'Donnell <rod@iol.ie>

The first isn't a "real" psql - it's a symlink to pg_wrapper, which is
how Debian and Ubuntu allow you to run different Postgres versions and
clusters on the same machine. You call the client program (psql,
pg_dump, etc) you want as usual, but pass it the --cluster option, as
follows:

  psql --cluster 9.1/main (....)

and then pg_wrapper calls the correct version of the client program.


OK, thanks very much, I'll try that ASAP.
 
>
> 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.

PHP doesn't use psql, it uses libpq (the client library).

then, the php link to the client library is faulty.

I've to find why.
surprisingly, when from a php script i want to connect to another pgsql server, on another machine, by it's IPV6 addresse it works as expected...


--
Yvon


pgsql-general by date:

Previous
From: Yvon Thoraval
Date:
Subject: Re: SQLSTATE[08006] [7] server closed the connection unexpectedly
Next
From: Craig Ringer
Date:
Subject: Re: foreign key from array element