On Wed, 12 Sep 2001 16:16:41 -0400, Vivek Khera <khera@kcilink.com> wrote:
> >>>>> "HS" == Harold Sinclair <hsinclai@andalus.speakeasy.net> writes:
> HS> Creating Pg database rt2.  DBI-> connect(dbname=template1;host=localhost) failed: PQconnectPoll() -- connect() failed: Connection refused at /usr/lib/perl5/site_perl/5.6.0/DBIx/DataSource/Driver.pm line 74
> HS> PQconnectPoll() -- connect() failed: Connection refused at /usr/lib/perl5/site_perl/5.6.0/DBIx/DataSource/Driver.pm line 74, <STDIN> line 1.
> 
> What does your Pg error log say after you run this?

Unfortunately, nothing. It's empty leading me to believe that I am not even touching Pg with the DBI connect. Pg is local (Unix domain sockets) and not TCP/IP. Could this have something to do with hostname resolution?
I have duplicated the error exactly on 2 separate Linux test systems. One is "properly" in DNS, and the other is not in DNS so the hostname returned varies depending on the asking mechanism. I don't think it's a DNS problem but I can't fully rule it out. Again, thanks for your further help.

PS- I tried changing the initdb code so that 'host=' is not included in the connect string, to no avail.






