Re: postgres perl DBI

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Fetter, David M" <Fetter(dot)David(at)emeryworld(dot)com>
Cc: "PostgreSQL-General (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgres perl DBI
Date: 2000-08-01 01:30:10
Message-ID: 19828.965093410@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Fetter, David M" <Fetter(dot)David(at)emeryworld(dot)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(at)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-08-01 01:37:34 Re: pg_dump & performance degradation
Previous Message Chris Bitmead 2000-08-01 01:20:55 Re: Replication options in Postgres