Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE' - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'
Date
Msg-id 20190821024005.GA16883@alvherre.pgsql
Whole thread Raw
In response to Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'  (Michael Paquier <michael@paquier.xyz>)
Responses Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'
List pgsql-bugs
On 2019-Aug-21, Michael Paquier wrote:

> +            if (PQsocket(conn) >= FD_SETSIZE)
> +            {
> +                fprintf(stderr, "too many jobs for this platform's select()\n");
> +                exit(1);
> +            }

BTW why fprintf?  Since you can get into this by careless use of -j,
ISTM that this should be a translatable string.  I'd consider
pg_log_fatal().  Maybe something like "Argument of -j too large for this
platform -- try %d", numslots - i.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-bugs by date:

Previous
From: Sandeep Thakkar
Date:
Subject: Re: Postgres 11.5.1 failed installation
Next
From: Christoph Ziegenberg
Date:
Subject: Re: BUG #15967: Sequence generation using NEXTVAL() fails on 64bit systems