bdr: pgbench: delete instead of truncate
authorAndres Freund <[email protected]>
Mon, 9 Dec 2013 12:38:10 +0000 (13:38 +0100)
committerAndres Freund <[email protected]>
Thu, 3 Jul 2014 15:55:18 +0000 (17:55 +0200)
contrib/pgbench/pgbench.c

index 4aa8a5031a09bda403447eb1ac76c1906cb64894..9be9f29bb7fa108eb91b3f982d74973c75756bbb 100644 (file)
@@ -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)