forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit091a971
committed
Modify query on pg_hba_file_rules to check for errors in regression tests
The regression tests include a query to check the execution path ofpg_hba_file_rules, but it has never checked that a given cluster hascorrect contents in pg_hba.conf. This commit extends the query ofpg_hba_file_rules to report any errors if anything bad is found. ForEXEC_BACKEND builds, any connection attempt would fail when loadingpg_hba.conf if any incorrect content is found when parsed, so a failurewould be detected before even running this query. However, this canbecome handy for clusters where pg_hba.conf can be reloaded, where newconnection attempts are not subject to a fresh loading of pg_hba.conf.Author: Julien Rouhaud, based on an idea from meDiscussion:https://postgr.es/m/YkFhpydhyeNNo3Xl@paquier.xyz1 parent33a3776 commit091a971
2 files changed
+9
-7
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
|
0 commit comments
Comments
(0)