Re: Fwd: Keywords in pg_hba.conf should be field-specific

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: Keywords in pg_hba.conf should be field-specific
Date: 2011-06-21 01:11:59
Message-ID: 1308618156-sup-5616@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Excerpts from Brendan Jurd's message of lun jun 20 20:06:39 -0400 2011:
> On 21 June 2011 06:06, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> > Excerpts from Alvaro Herrera's message of lun jun 20 12:19:37 -0400 2011:
> >> Excerpts from Pavel Stehule's message of lun jun 20 11:34:25 -0400 2011:
> >>
> >> > b) probably you can simplify a memory management using own two
> >> > persistent memory context - and you can swap it. Then functions like
> >> > free_hba_record, clean_hba_list, free_lines should be removed.
> >>
> >> Yeah, I reworked the patch with something like that over the weekend.
> >> Not all of it though.  I'll send an updated version shortly.
> >
> > Here it is, please let me know what you think.  I took the liberty of
> > cleaning up some things that were clearly historical leftovers.
> >
>
> Okay, yeah, the MemoryContext approach is far more elegant than what I
> had. Boy was I ever barking up the wrong tree.

Eh, whoever wrote the original code was barking up the same tree, so I
don't blame you for following the well-trodden path.

I realize I took out most of the fun of this patch from you, but -- are
you still planning to do some more exhaustive testing of it? I checked
some funny scenarios (including include files and groups) but it's not
all that unlikely that I missed some cases. I also didn't check any
auth method other than ident, md5 and trust, 'cause I don't have what's
required for anything else. (It's a pity that the regression tests
don't exercise anything else.)

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brendan Jurd 2011-06-21 01:25:07 Re: Fwd: Keywords in pg_hba.conf should be field-specific
Previous Message Brendan Jurd 2011-06-21 00:06:39 Re: Fwd: Keywords in pg_hba.conf should be field-specific