Re: Problem with tcp/ip connection, postgresql.conf - Mailing list pgsql-admin

From Tom Lane
Subject Re: Problem with tcp/ip connection, postgresql.conf
Date
Msg-id 29741.1055087452@sss.pgh.pa.us
Whole thread Raw
In response to Problem with tcp/ip connection, postgresql.conf  ("Nick Fankhauser" <nickf@ontko.com>)
Responses Re: Problem with tcp/ip connection, postgresql.conf  ("Nick Fankhauser" <nickf@ontko.com>)
Re: Problem with tcp/ip connection, postgresql.conf  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-admin
"Nick Fankhauser" <nickf@ontko.com> writes:
> If he starts the postmaster with the -i flag, he can get a connection.
> If he sets tcpip_socket = 1 in postgresql.conf, but doesn't use the -i flag
> on startup, it doesn't work.

> So far, my suggestions have been to make sure the postgresql.conf file
> is in the data directory and is readable. Beyond this I can't think of
> anything,

A couple of simple mistakes we've seen recently are to forget to remove
the '#' comment leader from the line, or to be editing the wrong copy of
the file (not the one in $PGDATA).

While experimenting with this, I noted that the postmaster will not
complain if postgresql.conf is not found --- though it will complain if
it finds the file but can't read it (eg permission failures).  It seems
to me this is a bug, or at any rate a bad idea.  There should be at least
a warning message if the postgresql.conf file isn't found, and quite
possibly the postmaster should refuse to start at all, on the grounds
that you may have pointed it to a a bogus data directory.

Any opinions about this out there?

            regards, tom lane

pgsql-admin by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: No acceptable C compiler found
Next
From: Tom Lane
Date:
Subject: Re: possible data loss.