Re: Postgres crashed on invalid IP entry in pg_hba.conf - Mailing list pgsql-admin

From Tom Lane
Subject Re: Postgres crashed on invalid IP entry in pg_hba.conf
Date
Msg-id 26829.1108584317@sss.pgh.pa.us
Whole thread Raw
In response to Postgres crashed on invalid IP entry in pg_hba.conf  (pkalva@deg.cc)
Responses Re: Postgres crashed on invalid IP entry in pg_hba.conf  (Pallav Kalva <pkalva@deg.cc>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Access privileges
Next
From: Pallav Kalva
Date:
Subject: Re: Postgres crashed on invalid IP entry in pg_hba.conf