Skip to content

Commit 6bc5d84

Browse files
committed
debug: log more
1 parent 456bd8f commit 6bc5d84

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

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,

tests/src/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ impl Config {
210210
let setup = format!(
211211
r#"
212212
create extension pg_trgm;
213-
create extension pg_stat_statements;
214213
create extension btree_gist;
215214
create extension postgres_fdw;
216215
grant usage on foreign data wrapper postgres_fdw to "{}";

0 commit comments

Comments
 (0)