From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | PostgreSQL Bug List <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: LibPQ doesn't say host=* translates to localhost |
Date: | 2024-06-27 20:42:51 |
Message-ID: | 1860173.1719520971@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> 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)
Seems to be an undocumented glibc-ism. That works for me on RHEL8,
but not on macOS:
$ psql -h '*'
psql: error: could not translate host name "*" to address: nodename nor servname provided, or not known
The POSIX spec for getaddrinfo(3) doesn't suggest it should
work, either.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2024-06-28 00:18:45 | Re: BUG #18500: Detaching a partition with an index manually attached to the parent's index triggers Assert |
Previous Message | David G. Johnston | 2024-06-27 19:56:40 | LibPQ doesn't say host=* translates to localhost |