|
4 | 4 | * A simple benchmark program for PostgreSQL |
5 | 5 | * Originally written by Tatsuo Ishii and enhanced by many contributors. |
6 | 6 | * |
7 | | - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.80 2008/05/09 15:53:07 tgl Exp $ |
| 7 | + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.81 2008/08/22 17:57:34 momjian Exp $ |
8 | 8 | * Copyright (c) 2000-2008, PostgreSQL Global Development Group |
9 | 9 | * ALL RIGHTS RESERVED; |
10 | 10 | * |
@@ -1080,7 +1080,10 @@ init(void) |
1080 | 1080 |
|
1081 | 1081 | /* vacuum */ |
1082 | 1082 | fprintf(stderr,"vacuum..."); |
1083 | | -executeStatement(con,"vacuum analyze"); |
| 1083 | +executeStatement(con,"vacuum analyze branches"); |
| 1084 | +executeStatement(con,"vacuum analyze tellers"); |
| 1085 | +executeStatement(con,"vacuum analyze accounts"); |
| 1086 | +executeStatement(con,"vacuum analyze history"); |
1084 | 1087 |
|
1085 | 1088 | fprintf(stderr,"done.\n"); |
1086 | 1089 | PQfinish(con); |
@@ -1757,8 +1760,7 @@ main(int argc, char **argv) |
1757 | 1760 | fprintf(stderr,"starting vacuum..."); |
1758 | 1761 | executeStatement(con,"vacuum branches"); |
1759 | 1762 | executeStatement(con,"vacuum tellers"); |
1760 | | -executeStatement(con,"delete from history"); |
1761 | | -executeStatement(con,"vacuum history"); |
| 1763 | +executeStatement(con,"truncate history"); |
1762 | 1764 | fprintf(stderr,"end.\n"); |
1763 | 1765 |
|
1764 | 1766 | if (do_vacuum_accounts) |
|