Skip to content

Commit

Permalink
remove not found validation for bloat stats of non btree queries
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro.mascarenhas committed Apr 3, 2024
1 parent 7ffd693 commit 7db8e02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/db/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func (pg *PgConnection) ReindexTable(ctx context.Context, schema, table string,
}

indexBloatStats, err := pg.getIndexBloatStats(context.Background(), schema, index.IndexName)
if err != nil {
if pgxscan.NotFound(err) {
pg.log.Warnf("failed on get index bloat stats: %s", err)
} else if err != nil {
return false, fmt.Errorf("failed on get index bloat stats: %w", err)
}

Expand Down

0 comments on commit 7db8e02

Please sign in to comment.