Skip to content

Commit 2199de5

Browse files
committed
debug: log more
1 parent 456bd8f commit 2199de5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

store/postgres/src/connection_pool.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,7 @@ impl PoolInner {
13291329

13301330
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("./migrations");
13311331

1332+
#[derive(Debug)]
13321333
struct MigrationCount {
13331334
old: usize,
13341335
new: usize,
@@ -1377,11 +1378,6 @@ fn migrate_schema(logger: &Logger, conn: &mut PgConnection) -> Result<MigrationC
13771378
}
13781379

13791380
let migrations = catalog::migration_count(conn)?;
1380-
if migrations != old_count {
1381-
// Reset the query statistics since a schema change makes them not
1382-
// all that useful. An error here is not serious and can be ignored.
1383-
conn.batch_execute("select pg_stat_statements_reset()").ok();
1384-
}
13851381

13861382
Ok(MigrationCount {
13871383
new: migrations,

0 commit comments

Comments
 (0)