Re: problems connecting to php via pg_connect and PGCLUSTER

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: problems connecting to php via pg_connect and PGCLUSTER
Дата
Msg-id CAOR=d=2DgJr2bDM+WdhfUdwckM4RO1FL9MybDr2V+z5uM4tYdQ@mail.gmail.com
обсуждение исходный текст
Ответ на problems connecting to php via pg_connect and PGCLUSTER  ("Dave Potts" <dave.potts@pinan.co.uk>)
Ответы [FIXED] Re: problems connecting to php via pg_connect and PGCLUSTER  ("Dave Potts" <dave.potts@pinan.co.uk>)
Список pgsql-general
On Mon, Feb 6, 2012 at 4:03 PM, Dave Potts <dave.potts@pinan.co.uk> wrote:
>
> I have two versions of postgres installed, 8.4 and 9.1 installed on the
> same machine
>
> To connect to my 9.1 database, I defined the envromental variable
>
> PGCLUSTER=9.1/main
>
> and use psql to connect via php pg_connect
> I have try saying
>
> define("PG_OPTIONS"  , "--cluster=9.1/main");
>
> and using the phrase
>
>  $con = pg_connect("dbname=".PG_DB." host=".PG_HOST." user=".PG_USER."
> options=".PG_OPTIONS);

Get rid of the options and just put in the port of the cluster you
want to connect to.

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

Предыдущее
От: Chris
Дата:
Сообщение: Re: problems connecting to php via pg_connect and PGCLUSTER
Следующее
От: sunpeng
Дата:
Сообщение: Hi,are there any other open source parallel query engine like pgpool?