src/port/gethostname.c sure looks like dead code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: src/port/gethostname.c sure looks like dead code
Date: 2015-01-23 19:32:39
Message-ID: 9841.1422041559@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

AFAICS there are no provisions to ever build this file, on any platform,
and have not been since 8.0.

If we did build it, it would likely fail on a large subset of platforms,
because it refers to a constant SYS_NMLN that isn't too portable.

I propose we just remove it.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2015-01-23 19:34:36 Re: pg_upgrade and rsync
Previous Message Andres Freund 2015-01-23 19:30:43 Re: pg_upgrade and rsync