Skip to content

Commit

Permalink
try plain storage for minmax sparse indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzm committed Feb 20, 2025
1 parent a452563 commit f88294b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsl/src/compression/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ build_columndefs(CompressionSettings *settings, Oid src_relid)
attr->atttypid,
attr->atttypmod,
attr->attcollation);
def->storage = TYPSTORAGE_MAIN;
def->storage = TYPSTORAGE_PLAIN;
compressed_column_defs = lappend(compressed_column_defs, def);
def = makeColumnDef(column_segment_max_name(index),
attr->atttypid,
attr->atttypmod,
attr->attcollation);
def->storage = TYPSTORAGE_MAIN;
def->storage = TYPSTORAGE_PLAIN;
compressed_column_defs = lappend(compressed_column_defs, def);
}
else if (bms_is_member(attr->attnum, btree_columns))
Expand All @@ -306,13 +306,13 @@ build_columndefs(CompressionSettings *settings, Oid src_relid)
attr->atttypmod,
attr->attcollation);
compressed_column_defs = lappend(compressed_column_defs, def);
def->storage = TYPSTORAGE_MAIN;
def->storage = TYPSTORAGE_PLAIN;
def =
makeColumnDef(compressed_column_metadata_name_v2("max", NameStr(attr->attname)),
attr->atttypid,
attr->atttypmod,
attr->attcollation);
def->storage = TYPSTORAGE_MAIN;
def->storage = TYPSTORAGE_PLAIN;
compressed_column_defs = lappend(compressed_column_defs, def);
}
}
Expand Down

0 comments on commit f88294b

Please sign in to comment.