Re: pg_hba_lookup function to get all matching pg_hba.conf entries

Поиск
Список
Период
Сортировка
Искать
От
Shulgin, Oleksandr
Тема
Re: pg_hba_lookup function to get all matching pg_hba.conf entries
Дата
Msg-id
CACACo5Rt9Zc+UVPO2uK8iDjtM40BddQDQGbmR8jfLej=o9O2cg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Peter Eisentraut <peter_e@gmx.net>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Peter Eisentraut <peter_e@gmx.net>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Amit Kapila <amit.kapila16@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Amit Kapila <amit.kapila16@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Amit Kapila <amit.kapila16@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Amit Kapila <amit.kapila16@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries David Steele <david@pgmasters.net>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Robert Haas <robertmhaas@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries David Steele <david@pgmasters.net>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Robert Haas <robertmhaas@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Robert Haas <robertmhaas@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Michael Paquier <michael.paquier@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Amit Kapila <amit.kapila16@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Haribabu Kommi <kommi.haribabu@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
Re: pg_hba_lookup function to get all matching pg_hba.conf entries Pavel Stehule <pavel.stehule@gmail.com>
On Fri, Mar 18, 2016 at 7:53 AM, Haribabu Kommi <kommi.haribabu@gmail.com> wrote:
>
> On Thu, Mar 17, 2016 at 6:56 PM, Shulgin, Oleksandr
> <oleksandr.shulgin@zalando.de> wrote:
> >
> > You mean change context name and correct the comment?  I didn't suggest to
> > change the function name.
>
> Changed the context name and the comment only.

Check.

+} lookup_hba_line_context;
^^^^^ but why TAB here?

> >> > Still remains an issue of representing special keywords in database and
> >> > user_name fields, but there was no consensus about that though.
> >>
> >> How about adding keyword_database and keyword_user columns to listing
> >> out the keywords.  These columns will be populated only when the hba line
> >> contains any keywords.
> >
> >
> > Hm... that could work too.
>
> Here I attached patch with the added two keyword columns.

+ if (!tok->quoted && strcmp(tok->string, "all") == 0)

token_is_keyword(tok, "all") ?

> During the testing with different IP comparison methods like 'samehost' or
> 'samenet', the address details are not displayed. Is there any need of
> showing the IP compare method also?

Do you mean return "samehost/samenet/all" in the yet another keyword_address out parameter or something like that?

--
Alex

В списке pgsql-hackers по дате отправления
От: Fabien COELHO
Дата:
От: Dilip Kumar
Дата:
FAQ