-pgbench README 2006/07/26 Tatsuo Ishii
+pgbench README 2006/10/21 Tatsuo Ishii
o What is pgbench?
o History
+2006/10/21
+ * more fix with handling default scaling factor in the default
+ scenarios
+
2006/09/14
* change "tps" to "scale" to avoid confusion
-pgbench README 2006/07/26 Tatsuo Ishii
+pgbench README 2006/10/21 Tatsuo Ishii
\e$B"#\e(Bpgbench \e$B$H$O!)\e(B
\e$B"#2~DjMzNr\e(B
+2006/10/21
+ * \e$B99$K%G%U%)%k%H$N%9%1!<%j%s%0%U%!%/%?$r\e(Bbranches\e$B$+$i<h$C$F$3$J\e(B
+ \e$B$$%P%0$r=$@5!%\e(B
+
2006/09/13
* \e$BJQ?t\e(Btps\e$B$OJ6$i$o$7$$$N$G\e(Bscale\e$B$KJQ99!%%G%U%)%k%H%7%J%j%*$N;~$K!$\e(B
\e$B%G%U%)%k%H$N%9%1!<%j%s%0%U%!%/%?$r\e(Bbranches\e$B$+$i<h$C$F$3$J$$%P%0$r=$@5!%\e(B
/*
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.57 2006/10/07 19:25:28 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.58 2006/10/21 06:31:28 ishii Exp $
*
* pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii
memset(state + 1, 0, sizeof(*state) * (nclients - 1));
+ snprintf(val, sizeof(val), "%d", scale);
+
for (i = 1; i < nclients; i++)
{
int j;
exit(1);
}
}
+
+ if (putVariable(&state[i], "scale", val) == false)
+ {
+ fprintf(stderr, "Couldn't allocate memory for variable\n");
+ exit(1);
+ }
}
}
fprintf(stderr, "Couldn't allocate memory for variable\n");
exit(1);
}
+
+ if (nclients > 1)
+ {
+ for (i = 1; i < nclients; i++)
+ {
+ if (putVariable(&state[i], "scale", val) == false)
+ {
+ fprintf(stderr, "Couldn't allocate memory for variable\n");
+ exit(1);
+ }
+ }
+ }
}
if (!is_no_vacuum)