Skip to content

Commit a79d355

Browse files
committed
Use new analyze_table() function in other places, too
1 parent 5d1a941 commit a79d355

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/flex-table.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void table_connection_t::stop(bool updateable, bool append)
256256
}
257257

258258
log_info("Analyzing table '{}'...", table().name());
259-
m_db_connection->exec("ANALYZE " + table().full_name());
259+
analyze_table(*m_db_connection, table().schema(), table().name());
260260

261261
log_info("All postprocessing on table '{}' done in {}.", table().name(),
262262
util::human_readable_duration(timer.stop()));

src/table.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ void table_t::stop(bool updateable, bool enable_hstore_index,
255255
}
256256
}
257257
log_info("Analyzing table '{}'...", m_target->name);
258-
m_sql_conn->exec("ANALYZE {}"_format(qual_name));
258+
analyze_table(*m_sql_conn, m_target->schema, m_target->name);
259259

260260
log_info("All postprocessing on table '{}' done in {}.", m_target->name,
261261
util::human_readable_duration(timer.stop()));

0 commit comments

Comments
 (0)