Skip to content

Commit

Permalink
Prefer 'memory_optimized' and stop advertising 'bq_compression'
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgreen42 committed Jan 21, 2025
1 parent ec182e0 commit d1b3d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pgvectorscale/src/access_method/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pub unsafe fn init() {
pg_sys::add_string_reloption(
RELOPT_KIND_TSV,
"storage_layout".as_pg_cstr(),
"Storage layout: either memory_optimized, io_optimized, or plain".as_pg_cstr(),
"Storage layout: either memory_optimized or plain".as_pg_cstr(),
super::storage::DEFAULT_STORAGE_TYPE_STR.as_pg_cstr(),
Some(validate_storage_layout),
pg_sys::AccessExclusiveLock as pg_sys::LOCKMODE,
Expand Down
4 changes: 1 addition & 3 deletions pgvectorscale/src/access_method/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ impl StorageType {
match value.to_lowercase().as_str() {
"plain" => StorageType::Plain,
"bq_compression" | "memory_optimized" => StorageType::SbqCompression,
_ => panic!(
"Invalid storage type. Must be either 'plain' or 'bq_compression' aka 'memory_optimized'"
),
_ => panic!("Invalid storage type. Must be either 'plain' or 'memory_optimized'"),
}
}
}

0 comments on commit d1b3d15

Please sign in to comment.