pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pkalva@deg.cc
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres crashed on invalid IP entry in pg_hba.conf
Date: Wed, 16 Feb 2005 15:05:17 -0500
Message-ID: <26829.1108584317@sss.pgh.pa.us> (raw)
In-Reply-To: <1108578986.421392aad28bd@mail.deg.cc>
References: <1108578986.421392aad28bd@mail.deg.cc>

pkalva@deg.cc writes:
>    Yesterday, our production database was crashed as soon as we added an invlid
> entry in the pg_hba.conf file. Immediately, after the SIGHUP it tried to read
> the pg_hba.conf file and it couldnt validate the IP address and restarted the
> postgres server, as soon as we change the pg_hba.conf with the right entry
> everything was back to normal. Attached you will see the postgres log file at
> the time of the crash. Postgres version we are using is 7.4.2.

Works fine for me in 7.4.7 ... I get log entries like this:

LOG:  invalid IP address "1727.0.0.1" in pg_hba.conf file: Unknown server error
LOG:  invalid entry in pg_hba.conf file at line 56, token "1727.0.0.1"
FATAL:  missing or erroneous pg_hba.conf file
HINT:  See server log for details.

and after I fix the pg_hba.conf file it lets me in again.  I see no crash.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <26829.1108584317@sss.pgh.pa.us>
Permalink:  ../26829.1108584317@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26829.1108584317@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, pkalva@deg.cc, pgsql-bugs@postgresql.org
  Subject: Re: Postgres crashed on invalid IP entry in pg_hba.conf
  In-Reply-To: <26829.1108584317@sss.pgh.pa.us>
  References: <1108578986.421392aad28bd@mail.deg.cc> <26829.1108584317@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