pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: nickf@ontko.com
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Cc: ratnakumala@yahoo.com
Subject: Re: Problem with tcp/ip connection, postgresql.conf
Date: Sun, 08 Jun 2003 11:50:52 -0400
Message-ID: <29741.1055087452@sss.pgh.pa.us> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGMEOMHIAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGMEOMHIAA.nickf@ontko.com>

"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



view thread (6+ messages)  latest in thread

Message-ID: <29741.1055087452@sss.pgh.pa.us>
Permalink:  ../29741.1055087452@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29741.1055087452@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nickf@ontko.com, ratnakumala@yahoo.com
  Subject: Re: Problem with tcp/ip connection, postgresql.conf
  In-Reply-To: <29741.1055087452@sss.pgh.pa.us>
  References: <NEBBLAAHGLEEPCGOBHDGMEOMHIAA.nickf@ontko.com> <29741.1055087452@sss.pgh.pa.us>

* 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