Re: [HACKERS] Is "trust" really a good default?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Is "trust" really a good default?
Date: 2004-07-13 21:27:07
Message-ID: 18843.1089754027@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Magnus Hagander wrote:
>> Might still be worth adding "--ident" as a parameter anyway, but in that
>> case only to help the distros that need it. Or not, because they already
>> have a way to deal with it.

> I think --ident would be very helpful, and we know with OS's support
> ident too.

If we're going to be doing sed-like substitutions on pg_hba.conf.sample,
then we really really wanna discourage distros from hacking the sample
file directly, because that could break the sed results. So I think
it's important to provide the switch.

I was toying with the notion of a different editing mechanism though,
so that initdb could emit a pg_hba.conf containing comments that are
actually pertinent to the selected behavior. One simple way would be to
prefix each line with a keyword to select when to emit it:
ALWAYS this text is always emitted
NEVER this text is never emitted (a meta-comment)
TRUST this text is emitted if we're selecting TRUST mode
IDENT this text is emitted if we're selecting IDENT mode
etc.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-07-13 21:36:46 Re: serverlog rotation/functions
Previous Message Magnus Hagander 2004-07-13 21:26:35 Re: [HACKERS] Is "trust" really a good default?

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-07-13 21:36:46 Re: serverlog rotation/functions
Previous Message Magnus Hagander 2004-07-13 21:26:35 Re: [HACKERS] Is "trust" really a good default?