no pgrx, please

This commit is contained in:
Eric B. Ridge
2024-12-06 11:48:43 -05:00
committed by Philippe Noël
parent a8ae71f780
commit db989cf0dd
2 changed files with 0 additions and 9 deletions

View File

@@ -11,13 +11,8 @@ keywords = []
documentation = "https://docs.rs/tantivy-bitpacker/latest/tantivy_bitpacker"
homepage = "https://github.com/quickwit-oss/tantivy"
[features]
default = ["pg17"]
pg17 = ["pgrx/pg17"]
[dependencies]
bitpacking = { version = "0.9.2", default-features = false, features = ["bitpacker1x"] }
pgrx = "0.12.7"
[dev-dependencies]
rand = "0.8"

View File

@@ -114,10 +114,6 @@ impl BitUnpacker {
fn get_slow_path(&self, addr: usize, bit_shift: u32, data: &[u8]) -> u64 {
let mut bytes: [u8; 8] = [0u8; 8];
if addr > data.len() {
eprintln!("addr: {}, data.len(): {} tid: {}", addr, data.len(), unsafe { pgrx::pg_sys::GetCurrentTransactionId() });
}
let available_bytes = data.len() - addr;
// This function is meant to only be called if we did not have 8 bytes to load.
debug_assert!(available_bytes < 8);