projects
/
users
/
andresfreund
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b466e1
)
bdr: pgbench: delete instead of truncate
author
Andres Freund
<
[email protected]
>
Mon, 9 Dec 2013 12:38:10 +0000
(13:38 +0100)
committer
Andres Freund
<
[email protected]
>
Thu, 3 Jul 2014 15:55:18 +0000
(17:55 +0200)
contrib/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgbench/pgbench.c
b/contrib/pgbench/pgbench.c
index 4aa8a5031a09bda403447eb1ac76c1906cb64894..9be9f29bb7fa108eb91b3f982d74973c75756bbb 100644
(file)
--- a/
contrib/pgbench/pgbench.c
+++ b/
contrib/pgbench/pgbench.c
@@
-1694,7
+1694,7
@@
init(bool is_no_vacuum)
fprintf(stderr, "creating tables...\n");
executeStatement(con, "begin");
- executeStatement(con, "
truncate
pgbench_accounts");
+ executeStatement(con, "
delete from
pgbench_accounts");
res = PQexec(con, "copy pgbench_accounts from stdin");
if (PQresultStatus(res) != PGRES_COPY_IN)