On Wed, Mar 04, 2009 at 10:28:42AM +0100, Magnus Hagander wrote:
> Joshua Tolley wrote:
> > On Wed, Mar 04, 2009 at 09:43:55AM +0100, Magnus Hagander wrote:
> >> So. I've updated the comment, and applied your patch. Thanks!
> > 
> > What would it take to get it applied to a few earlier versions as well?
> 
> I guess you maintaining your own fork? ;-)
> 
> 
> Simply put, earlier versions threw away the contents of pg_hba and
> reloaded it completely. The support for keeping the old one around in
> case of syntax errors is new for 8.4. You'd basically require
> backpatching of large parts of that patch, and that's not going to happen.
> 
> //Magnus

Given that we ran into the problem in 8.3.6, how about something like
the attached to apply to it?

- Josh / eggyknap
Index: postmaster.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/postmaster/postmaster.c,v
retrieving revision 1.551.2.1
diff -r1.551.2.1 postmaster.c
1917c1917,1925
< 		load_hba();
---
>         if (access(HbaFileName, R_OK) == 0)
>         {
>             load_hba();
>         }
>         else
>         {
>             ereport(WARNING,
>                 (errmsg("HBA file %s is unreadable, not reloading", HbaFileName)));
>         }

Attachment: signature.asc
Description: Digital signature

Reply via email to