MCPcopy Create free account
hub / github.com/apache/cloudberry / initDropTables

Function initDropTables

src/bin/pgbench/pgbench.c:3965–3979  ·  view source on GitHub ↗

* Remove old pgbench tables, if any exist */

Source from the content-addressed store, hash-verified

3963 * Remove old pgbench tables, if any exist
3964 */
3965static void
3966initDropTables(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.

Callers 1

runInitStepsFunction · 0.85

Calls 1

executeStatementFunction · 0.85

Tested by

no test coverage detected