Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'
Дата
Msg-id 20190821024005.GA16883@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'  (Michael Paquier <michael@paquier.xyz>)
Список 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 по дате отправления:

Предыдущее
От: Sandeep Thakkar
Дата:
Сообщение: Re: Postgres 11.5.1 failed installation
Следующее
От: Christoph Ziegenberg
Дата:
Сообщение: Re: BUG #15967: Sequence generation using NEXTVAL() fails on 64bit systems