Skip to content

Commit 8a6dd80

Browse files
authored
Fix #313: Correctly check vector index existence for postgres. (#314)
1 parent 978eb71 commit 8a6dd80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ops/storages/postgres.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,10 +650,10 @@ impl SetupStatusCheck {
650650
.vector_indexes
651651
.iter()
652652
.filter(|(name, def)| {
653-
!existing
654-
.current
655-
.as_ref()
656-
.is_some_and(|v| v.vector_indexes.get(*name) != Some(def))
653+
!existing.always_exists()
654+
|| existing
655+
.possible_versions()
656+
.any(|v| v.vector_indexes.get(*name) != Some(def))
657657
})
658658
.map(|(k, v)| (k.clone(), v.clone()))
659659
.collect(),

0 commit comments

Comments
 (0)