Skip to content

Commit c9361a7

Browse files
committed
Remove CHECKPOINT call from pgbench -- Not needed and affects performance.
1 parent c448847 commit c9361a7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

contrib/pgbench/pgbench.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.14 2002/01/10 01:11:45 tgl Exp $
2+
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.15 2002/02/18 05:46:41 momjian Exp $
33
*
44
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -548,16 +548,6 @@ init()
548548
fprintf(stderr, "PQendcopy failed\n");
549549
exit(1);
550550
}
551-
552-
/*
553-
* do a checkpoint to purge the old WAL logs
554-
*/
555-
res = PQexec(con, "checkpoint");
556-
if (PQresultStatus(res) != PGRES_COMMAND_OK)
557-
{
558-
fprintf(stderr, "%s", PQerrorMessage(con));
559-
exit(1);
560-
}
561551
}
562552
}
563553

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy