pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove configure probe for sockaddr_in6 and require AF_INET6.
Date: Thu, 25 Aug 2022 22:26:05 +0000
Message-ID: <E1oRLIa-001Cjs-9I@gemulon.postgresql.org> (raw)

Remove configure probe for sockaddr_in6 and require AF_INET6.

SUSv3 <netinet/in.h> defines struct sockaddr_in6, and all targeted Unix
systems have it.  Windows has it in <ws2ipdef.h>.  Remove the configure
probe, the macro and a small amount of dead code.

Also remove a mention of IPv6-less builds from the documentation, since
there aren't any.

This is similar to commits f5580882 and 077bf2f2 for Unix sockets.  Even
though AF_INET6 is an "optional" component of SUSv3, there are no known
modern operating system without it, and it seems even less likely to be
omitted from future systems than AF_UNIX.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bcc8b14ef630b2ad9aae7813981fb248fbff9ed8

Modified Files
--------------
configure                           | 10 ----------
configure.ac                        |  6 ------
doc/src/sgml/client-auth.sgml       |  2 --
src/backend/libpq/auth.c            | 21 ---------------------
src/backend/libpq/hba.c             |  5 -----
src/backend/libpq/ifaddr.c          | 18 +-----------------
src/backend/libpq/pqcomm.c          |  2 --
src/backend/utils/adt/network.c     | 10 ----------
src/backend/utils/adt/pgstatfuncs.c | 11 ++---------
src/bin/initdb/initdb.c             | 10 ----------
src/include/pg_config.h.in          |  3 ---
src/include/utils/inet.h            |  4 ++--
src/interfaces/libpq/fe-connect.c   |  2 --
src/port/inet_net_ntop.c            |  5 ++---
src/tools/ifaddrs/test_ifaddrs.c    |  2 --
src/tools/msvc/Solution.pm          |  1 -
16 files changed, 7 insertions(+), 105 deletions(-)



Message-ID: <E1oRLIa-001Cjs-9I@gemulon.postgresql.org>
Permalink:  ../E1oRLIa-001Cjs-9I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oRLIa-001Cjs-9I@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Remove configure probe for sockaddr_in6 and require AF_INET6.
  In-Reply-To: <E1oRLIa-001Cjs-9I@gemulon.postgresql.org>
  References: <E1oRLIa-001Cjs-9I@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox