Re: pg_hba_file_settings view patch
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>,
Michael Paquier <michael.paquier@gmail.com>, Simon Riggs <simon@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2016-10-26T19:07:45Z
Lists: pgsql-hackers
On Tue, Oct 25, 2016 at 3:23 AM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote: > Haribabu Kommi wrote: >> On Mon, Oct 3, 2016 at 3:51 PM, Michael Paquier <michael.paquier@gmail.com> >> wrote: > >> 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. > > Peter Eisentraut said he'd like JSON better: > https://www.postgresql.org/message-id/5547DB0A.2020904@gmx.net > I asked twice about the use of JSON, suggesting an array instead: > https://www.postgresql.org/message-id/20151204163147.GZ2763@alvherre.pgsql > https://www.postgresql.org/message-id/20160201215714.GA98800@alvherre.pgsql > > I now think that we should figure out what it is that we want before we > continue to request it to be changed over and over. That sounds like a good idea. :-) FWIW, I'm -1 on using JSON here. I don't believe that we should start using JSON all over the place just because we can. If we do that, we'll end up with a mishmash of styles, and maybe look silly when JSON is replaced by the new and much better SDGJHSDR format. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
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