pgsql: Remove redundant code for getnameinfo() replacement

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove redundant code for getnameinfo() replacement
Date: 2012-10-05 01:49:51
Message-ID: E1TJx31-0008Vg-Qf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2012-10-05 02:42:16 pgsql: PL/pgSQL: rename gram.y to pl_gram.y
Previous Message Tom Lane 2012-10-04 21:55:02 pgsql: Make CREATE AGGREGATE complain if the initcond is invalid for th