prob with PERL/Postgres

Поиск
Список
Период
Сортировка
От Kristopher Yates
Тема prob with PERL/Postgres
Дата
Msg-id 3B6EA444.13097.C20296@localhost
обсуждение исходный текст
Список pgsql-sql
PERL SNIPPET:

# build arrays from file (OMITTED)

use Pg;
$dbhost='127.0.0.1';
$dbname='mpact';
#$connstr="dbname=$dbname";
$connstr="host=$dbhost dbname=$dbname";
$conn = Pg::connectdb($connstr);

#more code related to date omitted
   $result=$conn->exec($sql);   (PGRES_COMMAND_OK eq $result->resultStatus)   or  die $conn->errorMessage;

WHY DO I GET PQsendQuery() -- There is no connection to the 
backend.  I have tried leaving host blank, using IP 127.0.0.1 and 
hostname localhost.  This script should work - the problem is 
something with postgres but I dont know what.  Any ideas out 
there?  Thanks,  Kris


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: Data type confusion
Следующее
От: Allan Engelhardt
Дата:
Сообщение: Re: Mirroring the database?