Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit009b0d1

Browse files
committed
>>At this stage of the game I would just change pg_hba.conf.sample to use
>>'127.0.0.1/32' instead of '127.0.0.1 255.255.255.255'.>>>>>>Yeah, that's probably the path of least resistance. Note that the>comments and possibly the SGML docs need to be adjusted to match,>however, so it's not quite a one-liner.Andrew Dunstan
1 parent3ca998b commit009b0d1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎src/backend/libpq/pg_hba.conf.sample

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
# encrypted passwords. OPTION is the ident map or the name of the PAM
3636
# service.
3737
#
38+
# Note: On some Solaris systems, an IP-MASK of 255.255.255.255 is known not to work.
39+
# The corresponding CIDR-MASK of /32 does work.
40+
#
3841
# Database and user names containing spaces, commas, quotes and other special
3942
# characters can be quoted. Quoting one of the keywords "all", "sameuser" or
4043
# "samegroup" makes the name lose its special character, and just match a
@@ -49,15 +52,17 @@
4952
# ----------------------------------
5053
#
5154
# If you want to allow non-local connections, you need to add more
52-
# "host" records. Also, remember TCP/IP connections are only enabled
53-
# if you enable "tcpip_socket" in postgresql.conf.
55+
# "host" records. In that case you will also need to make PostgreSQL listen
56+
# on a non-local interface via the listen_addresses configuration parameter, or
57+
# the -i or -h command line switches.
58+
#
5459

5560
@authcomment@
5661

5762
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
5863

5964
local all all @authmethod@
6065
# IPv4-style local connections:
61-
host all all 127.0.0.1255.255.255.255 @authmethod@
66+
host all all 127.0.0.1/32 @authmethod@
6267
# IPv6-style local connections:
6368
host all all ::1/128 @authmethod@

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp