Re: postgres perl DBI - Mailing list pgsql-general

From Tom Lane
Subject Re: postgres perl DBI
Date
Msg-id 19828.965093410@sss.pgh.pa.us
Whole thread Raw
In response to postgres perl DBI  ("Fetter, David M" <Fetter.David@emeryworld.com>)
List pgsql-general
"Fetter, David M" <Fetter.David@emeryworld.com> writes:
> DBI->connect(dbname=template1) failed: PQconnectPoll() -- connect() failed:
> Connection refused
>         Is the postmaster running (with -i) at 'mwabs504'
>         and accepting connections on TCP/IP port '5432'?
>  at test.pl line 59

"Connection refused" at this stage generally means that the connect
request never got as far as the postmaster.  Are you sure you are
connecting to the right machine?  Your script

> [~/DBD-Pg-0.95] dmfetter@mwabs505! ps -ef|grep post
> dmfetter 24865 24254  0 21:35:38 pts/5    0:00 grep post
> postgres 23964     1  0 17:31:28 ?        0:00
> /usr/local/postgres/bin/postmaster -S -i

suggests you are on mwabs505 not mwabs504.

            regards, tom lane

pgsql-general by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: Replication options in Postgres
Next
From: "K Parker"
Date:
Subject: Openlink ODBC drivers for Unix