From: Bruce Momjian Date: Mon, 18 Feb 2002 05:46:41 +0000 (+0000) Subject: Remove CHECKPOINT call from pgbench -- Not needed and affects performance. X-Git-Tag: REL7_3~2120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9361a7a9c476b183e5a2b91fa2b085bf03773c4;p=postgresql Remove CHECKPOINT call from pgbench -- Not needed and affects performance. --- diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index 56d6a7128a..240340bb18 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1,5 +1,5 @@ /* - * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.14 2002/01/10 01:11:45 tgl Exp $ + * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.15 2002/02/18 05:46:41 momjian Exp $ * * pgbench: a simple TPC-B like benchmark program for PostgreSQL * written by Tatsuo Ishii @@ -548,16 +548,6 @@ init() fprintf(stderr, "PQendcopy failed\n"); exit(1); } - - /* - * do a checkpoint to purge the old WAL logs - */ - res = PQexec(con, "checkpoint"); - if (PQresultStatus(res) != PGRES_COMMAND_OK) - { - fprintf(stderr, "%s", PQerrorMessage(con)); - exit(1); - } } }