We ran into a little issue today where permission/ownership on
pg_hba.conf was accidentally changed to something that the postgres user
could not read. When a SIGHUP was issued, the postmaster quit. That was
kind of a bummer.
From the comment in hba.c, it appears that the desired behavior is to
have the system ignore the failure, and continue using what's already
loaded into memory. And, turns out, that's what I would like Postgres
to do as well.
So, this patch changes the error issued from load_hba() from FATAL to
WARNING if the file is not found, and returns.
Startup behavior (FATAL if pg_hba.conf can't be found) is not changed.
Tested against 8.4devel HEAD today.
End Point Corporation