Re: pg_hba_file_settings view patch
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Greg Stark <stark@mit.edu>
Cc: "Joshua D. Drake" <jd@commandprompt.com>, Josh Berkus <josh@agliodbs.com>, Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, 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-27T17:17:07Z
Lists: pgsql-hackers
Greg Stark wrote: > The fundamental problem is that the pga_hba.conf file has some bits of > complex structure that aren't easily captured by linear arrays. The > problem I struggled with most was the keywords like "all", "samerole", > and "replication". A simple array of text makes it awkward to > distinguish those keywords from the quoted text values with the same > content. And then there are the ldap options which naturally would be > a data type like json or htab. Hmm I thought we had decided that such keywords would live in separate arrays, i.e. you have one array for plain names and another array for keyword stuff. Then it's not ambiguous anymore. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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