From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com> |
Cc: | "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_hba_lookup function to get all matching pg_hba.conf entries |
Date: | 2016-02-01 21:57:14 |
Message-ID: | 20160201215714.GA98800@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Haribabu Kommi wrote:
> Hi, Do you have any further comments on the patch that needs to be
> taken care?
I do. I think the jsonb functions you added should be added to one of
the json .c files instead, since they seem of general applicability.
But actually, I don't think you have ever replied to the question of why
are you using JSON in the first place; isn't a normal array suitable?
The callback stuff is not documented in check_hba() at all. Can you
please add an explanation just above the function, so that people trying
to use it know what can the callback be used for? Also a few lines
above the callback itself would be good. Also, the third argument of
check_hba() is a translatable message so you should enclose it in _() so
that it is picked up for translation. The "skipped"/"matched" words
(and maybe others?) need to be marked similarly.
That "Failed" in the errmsg in pg_hba_lookup() should be lowercase.
Moving to next CF.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2016-02-01 22:02:08 | Re: [POC] FETCH limited by bytes. |
Previous Message | Andres Freund | 2016-02-01 21:44:08 | Re: Move PinBuffer and UnpinBuffer to atomics |