Remove CHECKPOINT call from pgbench -- Not needed and affects performance.
authorBruce Momjian <bruce@momjian.us>
Mon, 18 Feb 2002 05:46:41 +0000 (05:46 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 18 Feb 2002 05:46:41 +0000 (05:46 +0000)
contrib/pgbench/pgbench.c

index e95bbd7dddc7c6bf81ff9111fc6fc9d34967d1e5..1d3a92091dc37be2e7e2d9a874d6a200851bdc6d 100644 (file)
@@ -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);
-                       }
                }
        }