pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make sure IOV_MAX is defined.
Date: Tue, 01 Jul 2025 16:40:44 +0000
Message-ID: <E1uWe2G-004DSs-0e@gemulon.postgresql.org> (raw)

Make sure IOV_MAX is defined.

We stopped defining IOV_MAX on non-Windows systems in 75357ab94, on
the assumption that every non-Windows system defines it in <limits.h>
as required by X/Open.  GNU Hurd, however, doesn't follow that
standard either.  Put back the old logic to assume 16 if it's
not defined.

Author: Michael Banck <mbanck@gmx.net>
Co-authored-by: Christoph Berg <myon@debian.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/6862e8d1.050a0220.194b8d.76fa@mx.google.com
Discussion: https://postgr.es/m/6846e0c3.df0a0220.39ef9b.c60e@mx.google.com
Backpatch-through: 16

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0991249d7ab52ed689c1d5f752ae6581506627bc

Modified Files
--------------
src/include/port/pg_iovec.h | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)



view thread (4+ messages)

Message-ID: <E1uWe2G-004DSs-0e@gemulon.postgresql.org>
Permalink:  ../E1uWe2G-004DSs-0e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uWe2G-004DSs-0e@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make sure IOV_MAX is defined.
  In-Reply-To: <E1uWe2G-004DSs-0e@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