| From: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Daniel Gustafsson <daniel(at)yesql(dot)se> |
| Subject: | pg_hosts: Add pg_hosts_file_rules() |
| Date: | 2026-07-08 16:03:23 |
| Message-ID: | CAN4CZFNoqV6cwOH5UfatRwbvcw3BooxW8QyVECkzZmExtjmfqA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello,
While working on the configuration file format proposal, I noticed
that we are missing pg_hosts_file_rules, the pg_hosts version of
pg_hba_file_rules.
The attached patch adds this functionality, mirroring how the hba
version is implemented.
One detail I am definitely unsure about is the first rule_number
column, since pg_hosts is explicitly unordered, we might not want to
add it. I included it in 0001 for parity with hba_file_rules and
completeness.
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-Add-pg_hosts_file_rules-to-inspect-the-hosts-configu.patch | application/octet-stream | 19.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-07-08 16:48:02 | Re: Small patch to improve safety of utf8_to_unicode(). |
| Previous Message | Heikki Linnakangas | 2026-07-08 15:49:47 | Re: Can we get rid of TerminateThread() in pg_dump? |