Re: Remote connections to postgres...

Поиск
Список
Период
Сортировка
От Joel Burton
Тема Re: Remote connections to postgres...
Дата
Msg-id Pine.LNX.4.21.0104231509430.29603-100000@olympus.scw.org
обсуждение исходный текст
Ответ на Remote connections to postgres...  ("Bob Whitehouse" <bwhitehouse@geeknest.com>)
Список pgsql-novice
On Mon, 23 Apr 2001, Bob Whitehouse wrote:

> I need to connect to the postgres server from a remote machine with a Perl
> script. If I were on a local machine I would use something like this for the
> first part of the connection string: 'DBI:Pg:dbname=name'
>
> Can someone give me and example of what the connection string would look
> like from a remote machine?

`man DBD::Pg`

shows

 $dbh =
DBI->connect("dbi:Pg:dbname=$dbname;host=$host;port=$port;options=$options
;tty=$tty", "$username", "$password");

as an example.

Does this work?


--
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington


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

Предыдущее
От: Poul Kristensen
Дата:
Сообщение: Re: Java Interface for postgres database
Следующее
От: Ian Lance Taylor
Дата:
Сообщение: Re: Using cursors inside PL/pgSQL function