pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira de Oliveira <euler@timbira.com>
To: 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.
Date: Thu, 22 Dec 2011 14:22:46 -0300
Message-ID: <4EF36766.8030504@timbira.com> (raw)
In-Reply-To: <E1RdkxA-000279-Dq@wrigleys.postgresql.org>
References: <E1RdkxA-000279-Dq@wrigleys.postgresql.org>

On 22-12-2011 12:53, erkan@eurotel.com.tr wrote:
> 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. Even I start with -d 5 debug param, it exists after "logging
> shutdown" message. Debugging with gdb didn't help. After removing the line
> added above in pg_hba.conf, db starts.
> 
This is not a bug. Did you check your server logs (pgstartup.log must be the
pg_ctl output)? I got:

LOG:  invalid authentication method "127.0.0.1/32"
CONTEXT:  line 80 of configuration file "/home/euler/pg90/data/pg_hba.conf"
FATAL:  could not load pg_hba.conf

If you don't have logging_collector enabled, you should get the above message
in your terminal.

Problem is: instead of local you should use host.


-- 
   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento



view thread (3+ messages)  latest in thread

Message-ID: <4EF36766.8030504@timbira.com>
Permalink:  ../4EF36766.8030504@timbira.com/
Also on:    postgresql.org/message-id/4EF36766.8030504@timbira.com

 · 

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-bugs@postgresql.org
  Cc: euler@timbira.com
  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: <4EF36766.8030504@timbira.com>
  References: <E1RdkxA-000279-Dq@wrigleys.postgresql.org> <4EF36766.8030504@timbira.com>

* 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