Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fbff304

Browse files
committed
doc: Fix example with database regexp in HBA documentation
This HBA entry was using "local" while specifying an address, which was incorrect. While in it, this adjusts the format of the entry to be aligned with the surroundings. Oversight in 8fea868. Reported-by: Stéphane Schildknecht Reviewed-by: David G. Johnston Discussion: https://postgr.es/m/44662001-54c4-4bfd-be93-35e01ca25fa1@gmail.com Backpatch-through: 16
1 parent 7b71e5b commit fbff304

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/src/sgml/client-auth.sgml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,11 @@ host all all ::1/128 trust
810810
host all all localhost trust
811811

812812
# The same using a regular expression for DATABASE, that allows connection
813-
# to the database db1, db2 and any databases with a name beginning with "db"
814-
# and finishing with a number using two to four digits (like "db1234" or
815-
# "db12").
813+
# to any databases with a name beginning with "db" and finishing with a
814+
# number using two to four digits (like "db1234" or "db12").
816815
#
817-
# TYPE DATABASE USER ADDRESS METHOD
818-
local db1,"/^db\d{2,4}$",db2 all localhost trust
816+
# TYPE DATABASE USER ADDRESS METHOD
817+
host "/^db\d{2,4}$" all localhost trust
819818

820819
# Allow any user from any host with IP address 192.168.93.x to connect
821820
# to database "postgres" as the same user name that ident reports for

0 commit comments

Comments
 (0)