diff options
author | Magnus Hagander <magnus@hagander.net> | 2007-10-22 10:40:47 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2007-10-22 10:40:47 +0000 |
commit | f04b8a8e2c75442f8664f22b452c325327878498 (patch) | |
tree | 880750a3c73624a152699886322f0aca125bf063 | |
parent | 6088bfb8b69698290664c0edc9170625a6a4ff1c (diff) | |
download | postgresql-f04b8a8e2c75442f8664f22b452c325327878498.tar.gz postgresql-f04b8a8e2c75442f8664f22b452c325327878498.zip |
Increase FD_SETSIZE on Win32 to allow for more than 54 clients.
Per Greg Stark & Dave Page
-rw-r--r-- | contrib/pgbench/pgbench.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index 754d8fd804b..a5e57ce9550 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.72 2007/09/27 20:39:43 tgl Exp $ + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.73 2007/10/22 10:40:47 mha Exp $ * * pgbench: a simple benchmark program for PostgreSQL * written by Tatsuo Ishii @@ -24,6 +24,8 @@ #include <ctype.h> #ifdef WIN32 +#undef FD_SETSIZE +#define FD_SETSIZE 1024 #include <win32.h> #else #include <sys/time.h> |