Re: LibPQ doesn't say host=* translates to localhost

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LibPQ doesn't say host=* translates to localhost
Дата
Msg-id 1860173.1719520971@sss.pgh.pa.us
обсуждение исходный текст
Ответ на LibPQ doesn't say host=* translates to localhost  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.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



В списке pgsql-bugs по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: LibPQ doesn't say host=* translates to localhost
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: BUG #18500: Detaching a partition with an index manually attached to the parent's index triggers Assert