Skip to content

Commit 4be64c1

Browse files
committed
store: Do not create aggregate indexes twice
When index creation was postponed, we would create aggregate indexes twice. They could also be postponed, but we'll leave that for another day.
1 parent c23ee96 commit 4be64c1

File tree

1 file changed

+2
-1
lines changed
  • store/postgres/src/relational

1 file changed

+2
-1
lines changed

store/postgres/src/relational/ddl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,9 @@ impl Table {
422422
}
423423
} else {
424424
self.create_attribute_indexes(out)?;
425+
self.create_aggregate_indexes(schema, out)?;
425426
}
426-
self.create_aggregate_indexes(schema, out)
427+
Ok(())
427428
}
428429

429430
pub fn exclusion_ddl(&self, out: &mut String) -> fmt::Result {

0 commit comments

Comments
 (0)