We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a20f295 commit 086104fCopy full SHA for 086104f
store/postgres/src/relational/prune.rs
@@ -56,6 +56,12 @@ impl TablePair {
56
if catalog::table_exists(conn, dst_nsp.as_str(), &dst.name)? {
57
writeln!(query, "truncate table {};", dst.qualified_name)?;
58
} else {
59
+ let mut list = IndexList {
60
+ indexes: HashMap::new(),
61
+ };
62
+ let indexes = load_indexes_from_table(conn, &src, src_nsp.as_str())?;
63
+ list.indexes.insert(src.name.to_string(), indexes);
64
+
65
// In case of pruning we don't do delayed creation of indexes,
66
// as the asumption is that there is not that much data inserted.
67
dst.as_ddl(schema, catalog, Some(&list), &mut query)?;
0 commit comments