Re: [PATCH] Patch to make pg_hba.conf handle virtualhost access control and samehost keyword

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Damien Clermonté <damien(dot)clermonte(at)free(dot)fr>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCH] Patch to make pg_hba.conf handle virtualhost access control and samehost keyword
Date: 2001-07-11 22:19:31
Message-ID: 200107112219.f6BMJVi03002@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> > > Maybe it should be cached in memory and only be re-read on request
> > > (SIGHUP). Parsing that file every time is undoubtedly a large
> > fraction of
> > > the total connection startup time.
> >
> > Okay with me if someone wants to do it ... but that'd be a lot more work
> > than just moving the documentation ...
>
> Or cache the information and just do a file modification timestamp check on
> each connection to see if it needs to be reread. (Best of both worlds??)

Rather than having to create data structures for the complex pg_hba.conf
format, I am going to do a quick-and-dirty and load the non-comment
lines into a List of strings and have the postmaster read that. It will
reload from the file on sighup, just like we do for postgresql.conf.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Myers 2001-07-11 22:28:21 Re: Re: SOMAXCONN (was Re: Solaris source code)
Previous Message Mark Volpe 2001-07-11 22:06:56 Re: [PATCHES] Re: [PATCH] Re: Setuid functions

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-07-12 00:00:33 Patch to add support for partial indices
Previous Message Bruce Momjian 2001-07-11 22:14:27 Re: encode in base code