Re: Fwd: Keywords in pg_hba.conf should be field-specific - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Fwd: Keywords in pg_hba.conf should be field-specific
Date
Msg-id BANLkTin5rmogo19cYq=27+8zBnYQ2bhJqQ@mail.gmail.com
Whole thread Raw
In response to Re: Fwd: Keywords in pg_hba.conf should be field-specific  (Brendan Jurd <direvus@gmail.com>)
Responses Re: Fwd: Keywords in pg_hba.conf should be field-specific
List pgsql-hackers
2011/6/21 Brendan Jurd <direvus@gmail.com>:
> On 21 June 2011 13:51, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> I have one question. I can't find any rules for work with tokens, etc,
>> where is quotes allowed and disallowed?
>>
>> I don't see any other issues.
>
> I'm not sure I understand your question, but quotes are allowed
> anywhere and they always act to remove any special meaning the token
> might otherwise have had.  It's much like quoting a column name in
> SQL.

I don't understand to using a macro

#define token_is_keyword(t, k)    (!t->quoted && strcmp(t->string, k) == 0)

because you disallowed a quoting?

Regards

Pavel

>
> I didn't change any of the hba parsing rules, so escaping and whatnot
> should all work the way it did before.  The only difference should be
> that after parsing, keywords will only be evaluated for fields where
> they matter.
>
> Cheers,
> BJ
>


pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: Fwd: Keywords in pg_hba.conf should be field-specific
Next
From: Brendan Jurd
Date:
Subject: Re: Fwd: Keywords in pg_hba.conf should be field-specific