Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e4a52eca
Commit
e4a52eca
authored
Aug 25, 2007
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The upper limit for -c option of pgbench is now obtained from
(FD_SETSIZE - 10) rather than a hardwired number.
parent
52a0830c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
contrib/pgbench/pgbench.c
contrib/pgbench/pgbench.c
+7
-2
No files found.
contrib/pgbench/pgbench.c
View file @
e4a52eca
/*
/*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.7
0 2007/08/22 23:03:27 tgl
Exp $
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.7
1 2007/08/25 09:21:14 ishii
Exp $
*
*
* pgbench: a simple benchmark program for PostgreSQL
* pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii
* written by Tatsuo Ishii
...
@@ -53,7 +53,12 @@ extern int optind;
...
@@ -53,7 +53,12 @@ extern int optind;
/********************************************************************
/********************************************************************
* some configurable parameters */
* some configurable parameters */
#define MAXCLIENTS 1024
/* max number of clients allowed */
/* max number of clients allowed */
#ifdef FD_SETSIZE
#define MAXCLIENTS (FD_SETSIZE - 10)
#else
#define MAXCLIENTS 1024
#endif
int
nclients
=
1
;
/* default number of simulated clients */
int
nclients
=
1
;
/* default number of simulated clients */
int
nxacts
=
10
;
/* default number of transactions per clients */
int
nxacts
=
10
;
/* default number of transactions per clients */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment