X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 21B08F0037 for ; Sun, 8 Jun 2003 15:51:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 66552-09 for ; Sun, 8 Jun 2003 15:50:59 +0000 (GMT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 6E1AFEFF91 for ; Sun, 8 Jun 2003 15:50:59 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h58FoqU6029742; Sun, 8 Jun 2003 11:50:53 -0400 (EDT) To: nickf@ontko.com Cc: "pgsql-admin" , ratnakumala@yahoo.com Subject: Re: Problem with tcp/ip connection, postgresql.conf In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Fri, 06 Jun 2003 09:29:07 -0500" Date: Sun, 08 Jun 2003 11:50:52 -0400 Message-ID: <29741.1055087452@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/70 X-Sequence-Number: 9061 "Nick Fankhauser" 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