Re: pg_hba_file_settings view patch
Haribabu Kommi <kommi.haribabu@gmail.com>
From: Haribabu Kommi <kommi.haribabu@gmail.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2016-10-25T06:00:47Z
Lists: pgsql-hackers
On Mon, Oct 3, 2016 at 3:51 PM, Michael Paquier <michael.paquier@gmail.com> wrote: > On Mon, Sep 5, 2016 at 4:09 PM, Haribabu Kommi <kommi.haribabu@gmail.com> > wrote: > > On Sun, Sep 4, 2016 at 1:44 AM, Simon Riggs <simon@2ndquadrant.com> > wrote: > >> On 15 August 2016 at 12:17, Haribabu Kommi <kommi.haribabu@gmail.com> > >> wrote: > >> > >> > comments? > >> > >> This looks like a good feature contribution, thanks. > >> > >> At present the patch doesn't apply cleanly, please rebase. > > > > > > Rebased patch is attached. > > Moved to next CF as there is a patch and no reviews. > > + push_jsonb_string_key(&parseState, "map"); > + push_jsonb_string_value(&parseState, hba->usermap); > [...] > + <row> > + <entry><structfield>options</structfield></entry> > + <entry><type>jsonb</type></entry> > + <entry>Configuration options set for authentication method</entry> > + </row> > Why is it an advantage to use jsonb here instead of a simple array > made of name=value? If they were nested I'd see a case for it but it > seems to me that as presented this is just an overkill. In short, I > think that this patch needs a bit of rework, so I am marking it as > returned with feedback. > Yes, I agree that adding these JSONB utility functions for this view is an overkill, but I thought that these are may be useful for some users if it is a JSONB type instead of array. If anyone else feel the same opinion, I can update the patch with array datatype. Regards, Hari Babu Fujitsu Australia
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Invent pg_hba_file_rules view to show the content of pg_hba.conf.
- de16ab723888 10.0 landed
-
Restructure hba.c to replace 3 parallel lists with single list of structs.
- 350cb921ae2c 10.0 landed