aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-10-07 15:34:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-10-07 15:34:17 +0000
commitd156e1f850ec71573732af39587dcfd557618955 (patch)
treec752208ff2a2f420b17833e3cad36c3212c3141f
parent6ae76714970589dc637ffb2d8ac1f5e4ee2fab04 (diff)
downloadpostgresql-d156e1f850ec71573732af39587dcfd557618955.tar.gz
postgresql-d156e1f850ec71573732af39587dcfd557618955.zip
(Apologies for fat-fingering cvs commit command...) Should have read:
Remove unportable use of tfind/tsearch in favor of bsearch. Fix up random number generator to use random() not rand() and to actually honor its min/max arguments properly. That wasn't so important before, but with exposure of capability to ask for general ranges, it will be.
-rw-r--r--contrib/pgbench/pgbench.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index c005ef51a13..1b3d6bb09e0 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -1,5 +1,5 @@
/*
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.41 2005/10/07 15:31:49 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.42 2005/10/07 15:34:17 tgl Exp $
*
* pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii
@@ -21,6 +21,8 @@
#include "libpq-fe.h"
+#include <ctype.h>
+
#ifdef WIN32
#include "win32.h"
#else
@@ -39,8 +41,6 @@
#include <sys/resource.h>
#endif /* ! WIN32 */
-#include <ctype.h>
-
extern char *optarg;
extern int optind;