Skip to content

Commit 7db8e02

Browse files
author
pedro.mascarenhas
committed
remove not found validation for bloat stats of non btree queries
1 parent 7ffd693 commit 7db8e02

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/db/index.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ func (pg *PgConnection) ReindexTable(ctx context.Context, schema, table string,
7878
}
7979

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

0 commit comments

Comments
 (0)