Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4a52ec

Browse filesBrowse files
committed
The upper limit for -c option of pgbench is now obtained from
(FD_SETSIZE - 10) rather than a hardwired number.
1 parent 52a0830 commit e4a52ec
Copy full SHA for e4a52ec

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎contrib/pgbench/pgbench.c

Copy file name to clipboardExpand all lines: contrib/pgbench/pgbench.c
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
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 $
33
*
44
* pgbench: a simple benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -53,7 +53,12 @@ extern int optind;
5353
/********************************************************************
5454
* some configurable parameters */
5555

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
5762

5863
int nclients = 1; /* default number of simulated clients */
5964
int nxacts = 10; /* default number of transactions per clients */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.