pg_hba.conf caching

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: pg_hba.conf caching
Date: 2001-07-21 00:31:02
Message-ID: 200107210031.f6L0V2o20575@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Attached is a patch that caches the non-comment contents of pg_hba.conf
as a List of list of tokens. It uses that to test each authentication
request. SIGHUP reloads from the file, and a cache of pg_ident.conf.

I replaced the File reading code with token storage and list traveral.

The only tricky part was moving the Postmaster memory clearing later in
the code so I had the file contents in postgres.c.

--
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

Attachment Content-Type Size
unknown_filename text/plain 49.2 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-07-21 01:45:42 Re: New EXPLAIN ANALYZE statement
Previous Message Bruce Momjian 2001-07-20 17:46:10 Re: libpq win32-native errno fix