LibPQ doesn't say host=* translates to localhost
От | David G. Johnston |
---|---|
Тема | LibPQ doesn't say host=* translates to localhost |
Дата | |
Msg-id | CAKFQuwbCeu4X7vwV7SZ8cGUycmKRxGE8YGmPGJof8tP8jgKWfw@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: LibPQ doesn't say host=* translates to localhost
Re: LibPQ doesn't say host=* translates to localhost |
Список | pgsql-bugs |
The documentation [0] doesn't say this should work and general networking knowledge leads me to believe it wouldn't [1].
PGHOST='*' psql postgres
psql (17beta1)
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
Type "help" for help.
postgres=# \conninfo
You are connected to database "postgres" as user "davidj" on host "*" (address "127.0.0.1") at port "5432".
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
psql (17beta1)
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
Type "help" for help.
postgres=# \conninfo
You are connected to database "postgres" as user "davidj" on host "*" (address "127.0.0.1") at port "5432".
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
David J.
[1]
ping *
ping: src: Temporary failure in name resolution
ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.031 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.028 ms
ping: src: Temporary failure in name resolution
ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.031 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.028 ms
В списке pgsql-bugs по дате отправления: