Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 78A323F7FDA for ; Thu, 22 Dec 2011 13:26:57 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RdmPv-0008KM-5p for pgsql-bugs@postgresql.org; Thu, 22 Dec 2011 17:26:57 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBMHQeRe016436; Thu, 22 Dec 2011 12:26:40 -0500 (EST) To: erkan@eurotel.com.tr cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6353: If there is invalid line in pg_hba.conf, DB start fails without any nofice and no logs in pgstartup. In-reply-to: References: Comments: In-reply-to erkan@eurotel.com.tr message dated "Thu, 22 Dec 2011 15:53:08 +0000" Date: Thu, 22 Dec 2011 12:26:40 -0500 Message-ID: <16435.1324574800@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -4.5 (----) X-Archive-Number: 201112/207 X-Sequence-Number: 32018 erkan@eurotel.com.tr writes: > If I add this line to pg_hba.conf, it causes a silent startup failure: > local all backup 127.0.0.1/32 trust > There is a linux user backup on this system. After adding this line and > issue "pg_ctl reload" it signals server successfully, no errors. But if I > stop db server, I can not start db anymore. Strangely no log exists in > pgstartup.log. Well, that line is obviously incorrect, because a "local" line doesn't need an IP address. For me, the postmaster gives very clear warnings about this, either in the pg_ctl reload case: LOG: received SIGHUP, reloading configuration files LOG: invalid authentication method "127.0.0.1/32" CONTEXT: line 95 of configuration file "/var/lib/pgsql/data/pg_hba.conf" WARNING: pg_hba.conf not reloaded or in the fresh-start case: LOG: invalid authentication method "127.0.0.1/32" CONTEXT: line 95 of configuration file "/var/lib/pgsql/data/pg_hba.conf" FATAL: could not load pg_hba.conf Your problem apparently is that the log messages are either not coming out at all, or you're looking in the wrong place for them. You have not said anything about your logging configuration so it's hard to give concrete advice, but in the default configuration set up by Red Hat's packages I'd expect those messages to appear in the current log file underneath /var/lib/pgsql/data/pg_log/. It's also conceivable that the messages aren't getting out at all because of a permissions-type problem --- I remember some very old versions of selinux policy would sometimes block postgres log messages, for example. If you've got selinux enabled it'd be worth checking for avc messages in the kernel logs. regards, tom lane