pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kristopher Yates <kris@grinz.com>
To: pgsql-sql@postgresql.org
Subject: prob with PERL/Postgres
Date: Mon, 6 Aug 2001 14:05:56 -0500
Message-ID: <3B6EA444.13097.C20296@localhost> (raw)

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



view thread (8+ messages)  latest in thread

Message-ID: <3B6EA444.13097.C20296@localhost>
Permalink:  ../3B6EA444.13097.C20296@localhost/
Also on:    postgresql.org/message-id/3B6EA444.13097.C20296@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: kris@grinz.com
  Subject: Re: prob with PERL/Postgres
  In-Reply-To: <3B6EA444.13097.C20296@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox