Skip site navigation (1) Skip section navigation (2)

Re: pg_hba.conf caching

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches <pgsql-patches(at)postgreSQL(dot)org>
Subject: Re: pg_hba.conf caching
Date: 2001-07-23 13:28:11
Message-ID: 20010723152810.D27380@ara.zf.jcu.cz (view raw or flat)
Thread:
Lists: pgsql-patches
On Fri, Jul 20, 2001 at 08:31:02PM -0400, Bruce Momjian wrote:
> 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

  Means it cached are tokens only (and it save lexical analyze for 
postmaster children), and final parsing (syntax analyze) running always?

 If I'm right: why not store to memory some final structs with config 
file content? And for example things like 'strcmp(token, "password")' 
run only once during postmaster startup.

			Karel

-- 
 Karel Zak  <zakkr(at)zf(dot)jcu(dot)cz>
 http://home.zf.jcu.cz/~zakkr/
 
 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2001-07-23 14:41:33
Subject: Re: pg_hba.conf caching
Previous:From: Bruce MomjianDate: 2001-07-23 00:55:44
Subject: pg_hba.conf cache

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group