File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.70 2007/08/22 23:03:27 tgl Exp $
2
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.71 2007/08/25 09:21:14 ishii Exp $
3
3
*
4
4
* pgbench: a simple benchmark program for PostgreSQL
5
5
* written by Tatsuo Ishii
@@ -53,7 +53,12 @@ extern int optind;
53
53
/********************************************************************
54
54
* some configurable parameters */
55
55
56
- #define MAXCLIENTS 1024 /* max number of clients allowed */
56
+ /* max number of clients allowed */
57
+ #ifdef FD_SETSIZE
58
+ #define MAXCLIENTS (FD_SETSIZE - 10)
59
+ #else
60
+ #define MAXCLIENTS 1024
61
+ #endif
57
62
58
63
int nclients = 1 ; /* default number of simulated clients */
59
64
int nxacts = 10 ; /* default number of transactions per clients */
You can’t perform that action at this time.
0 commit comments