aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-10-24 08:07:22 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-10-24 08:07:22 +0000
commitf8aa02eb85eeebc14c624ff50a6ed37c955d72f1 (patch)
treedb7b56a65b9ca9e201a0f94e1e100e35b2c6f51a
parent97ab49beb02e73c4e29eab21edefd887183496ad (diff)
downloadpostgresql-f8aa02eb85eeebc14c624ff50a6ed37c955d72f1.tar.gz
postgresql-f8aa02eb85eeebc14c624ff50a6ed37c955d72f1.zip
"time" is now a reserved keyword(changed to "mtime").
-rw-r--r--contrib/pgbench/README.pgbench7
-rw-r--r--contrib/pgbench/README.pgbench_jis6
-rw-r--r--contrib/pgbench/pgbench.c6
3 files changed, 13 insertions, 6 deletions
diff --git a/contrib/pgbench/README.pgbench b/contrib/pgbench/README.pgbench
index de51b2c7bc2..d052411ab2c 100644
--- a/contrib/pgbench/README.pgbench
+++ b/contrib/pgbench/README.pgbench
@@ -1,4 +1,4 @@
-pgbench 1.3 README 2001/09/09 Tatsuo Ishii (t-ishii@sra.co.jp)
+pgbench README 2001/10/24 Tatsuo Ishii (t-ishii@sra.co.jp)
o What is pgbench?
@@ -153,6 +153,9 @@ Basically it is same as BSD license. See pgbench.c for more details.
o History
+2001/10/24
+ * "time"->"mtime"
+
2001/09/09
* Add -U, -P, -C options
@@ -164,4 +167,4 @@ o History
* More robust when backends die
* Add -S option (select only)
-1999/09/04 pgbench-1.0 released \ No newline at end of file
+1999/09/04 pgbench-1.0 released
diff --git a/contrib/pgbench/README.pgbench_jis b/contrib/pgbench/README.pgbench_jis
index 04a5900c65c..b87d3e60df1 100644
--- a/contrib/pgbench/README.pgbench_jis
+++ b/contrib/pgbench/README.pgbench_jis
@@ -1,4 +1,4 @@
-pgbench 1.3 README 2001/09/09 Tatsuo Ishii (t-ishii@sra.co.jp)
+pgbench README 2001/09/09 Tatsuo Ishii (t-ishii@sra.co.jp)
$B"#(Bpgbench $B$H$O!)(B
@@ -169,6 +169,10 @@ pgbench $B$O@P0f(B $BC#IW$K$h$C$F=q$+$l$^$7$?!%%i%$%;%s%9>r7o$O(B pgbench.c
$B"#2~DjMzNr(B
+2001/10/24
+ * PostgreSQL 7.2$B$G!$(B"time"$B$,M=Ls8l$K$J$C$?$N$G!$(B"mtime"$B$KJQ99(B
+ $B$7$?!%(B
+
2001/09/09
* PostgreSQL 7.2$BMQ$K!$(B-U, -P, -C $B%*%W%7%g%s$rDI2C$7$^$7$?!%(B
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 6cb15bd2cab..5fc18fe6889 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -1,5 +1,5 @@
/*
- * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.10 2001/09/09 03:15:56 ishii Exp $
+ * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.11 2001/10/24 08:07:22 ishii Exp $
*
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii
@@ -301,7 +301,7 @@ doOne(CState * state, int n, int debug)
sprintf(sql, "update branches set bbalance = bbalance + %d where bid = %d", st->delta, st->bid);
break;
case 5:
- sprintf(sql, "insert into history(tid,bid,aid,delta,time) values(%d,%d,%d,%d,'now')",
+ sprintf(sql, "insert into history(tid,bid,aid,delta,mtime) values(%d,%d,%d,%d,'now')",
st->tid, st->bid, st->aid, st->delta);
break;
case 6:
@@ -444,7 +444,7 @@ init()
"drop table accounts",
"create table accounts(aid int,primary key(aid),bid int,abalance int,filler char(84))",
"drop table history",
- "create table history(tid int,bid int,aid int,delta int,time timestamp,filler char(22))"};
+ "create table history(tid int,bid int,aid int,delta int,mtime timestamp,filler char(22))"};
char sql[256];
int i;