postgresql/src/bin/pgbench
Noah Misch 90ebcc32d9 Don't spuriously report FD_SETSIZE exhaustion on Windows.
Starting on 2023-08-03, this intermittently terminated a "pgbench -C"
test in CI.  It could affect a high-client-count "pgbench" without "-C".
While parallel reindexdb and vacuumdb reach the same problematic check,
sufficient client count and/or connection turnover is less plausible for
them.  Given the lack of examples from the buildfarm or from manual
builds, reproducing this must entail rare operating system
configurations.  Also correct the associated error message, which was
wrong for non-Windows.  Back-patch to v12, where the pgbench check first
appeared.  While v11 vacuumdb has the problematic check, reaching it
with typical vacuumdb usage is implausible.

Reviewed by Thomas Munro.

Discussion: https://postgr.es/m/CA+hUKG+JwvTNdcyJTriy9BbtzF1veSRQ=9M_ZKFn9_LqE7Kp7Q@mail.gmail.com
2023-10-14 15:54:46 -07:00
..
t Allow pgbench to exit immediately when any client is aborted. 2023-08-30 10:03:31 +09:00
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
exprparse.y Update copyright for 2023 2023-01-02 15:00:37 -05:00
exprscan.l Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile windows: Adjust FD_SETSIZE via commandline define 2022-10-06 13:09:57 -07:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgbench.c Don't spuriously report FD_SETSIZE exhaustion on Windows. 2023-10-14 15:54:46 -07:00
pgbench.h Fix last remaining uninitialized memory warnings 2023-08-09 10:00:50 +02:00