pgsql: Remove redundant code for getnameinfo() replacement

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Remove redundant code for getnameinfo() replacement
Дата
Msg-id E1TJx31-0008Vg-Qf@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove redundant code for getnameinfo() replacement

Our getnameinfo() replacement implementation in getaddrinfo.c failed
unless NI_NUMERICHOST and NI_NUMERICSERV were given as flags, because
it doesn't resolve host names, only numeric IPs.  But per standard,
when those flags are not given, an implementation can still degrade to
not returning host names, so this restriction is unnecessary.  When we
remove it, we can eliminate some code in postmaster.c that apparently
tried to work around that.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c424d0d1052cb4053c8712ac44123f9b9a9aa3f2

Modified Files
--------------
src/backend/postmaster/postmaster.c |   19 ++++++-------------
src/port/getaddrinfo.c              |    5 -----
2 files changed, 6 insertions(+), 18 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Make CREATE AGGREGATE complain if the initcond is invalid for th
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: PL/pgSQL: rename gram.y to pl_gram.y