* Remove old pgbench tables, if any exist */
| 3963 | * Remove old pgbench tables, if any exist |
| 3964 | */ |
| 3965 | static void |
| 3966 | initDropTables(PGconn *con) |
| 3967 | { |
| 3968 | fprintf(stderr, "dropping old tables...\n"); |
| 3969 | |
| 3970 | /* |
| 3971 | * We drop all the tables in one command, so that whether there are |
| 3972 | * foreign key dependencies or not doesn't matter. |
| 3973 | */ |
| 3974 | executeStatement(con, "drop table if exists " |
| 3975 | "pgbench_accounts, " |
| 3976 | "pgbench_branches, " |
| 3977 | "pgbench_history, " |
| 3978 | "pgbench_tellers"); |
| 3979 | } |
| 3980 | |
| 3981 | /* |
| 3982 | * Create "pgbench_accounts" partitions if needed. |
no test coverage detected