doc: Fix example with database regexp in HBA documentation
authorMichael Paquier <[email protected]>
Wed, 5 Jun 2024 10:56:55 +0000 (19:56 +0900)
committerMichael Paquier <[email protected]>
Wed, 5 Jun 2024 10:56:55 +0000 (19:56 +0900)
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 8fea86830e1d.

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

doc/src/sgml/client-auth.sgml

index 7db407e8ee55da6f25823c0cbcd1a8e1608b636c..37ded4ba8793375d2359fb7edc3d6fc5de25dbb6 100644 (file)
@@ -810,12 +810,11 @@ host    all             all             ::1/128                 trust
 host    all             all             localhost               trust
 
 # The same using a regular expression for DATABASE, that allows connection
-# to the database db1, db2 and any databases with a name beginning with "db"
-# and finishing with a number using two to four digits (like "db1234" or
-# "db12").
+# to any databases with a name beginning with "db" and finishing with a
+# number using two to four digits (like "db1234" or "db12").
 #
-# TYPE  DATABASE                   USER            ADDRESS          METHOD
-local   db1,"/^db\d{2,4}$",db2     all             localhost        trust
+# TYPE  DATABASE        USER            ADDRESS                 METHOD
+host    "/^db\d{2,4}$"  all             localhost               trust
 
 # Allow any user from any host with IP address 192.168.93.x to connect
 # to database "postgres" as the same user name that ident reports for