Skip to content

Commit 77dac6e

Browse files
committed
chore: upload 0.4.3 schema scripts (#278)
job: +psql_macos job: +psql_windows --------- Signed-off-by: usamoi <[email protected]>
1 parent e068d51 commit 77dac6e

File tree

8 files changed

+616
-19
lines changed

8 files changed

+616
-19
lines changed

Cargo.lock

Lines changed: 30 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,16 @@ pgrx-catalog = "0.2.0"
3636
rand.workspace = true
3737
seq-macro.workspace = true
3838
serde.workspace = true
39-
toml = "0.8.22"
39+
toml = "0.8.23"
4040
validator.workspace = true
4141
zerocopy.workspace = true
4242

43-
[target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "linux"))'.dependencies]
43+
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies]
4444
jemallocator = { version = "0.5.4", features = ["disable_initial_exec_tls"] }
4545

46+
[target.'cfg(all(target_arch = "aarch64", target_os = "linux"))'.dependencies]
47+
mimalloc = { version = "0.1.47", features = ["local_dynamic_tls"] }
48+
4649
[lints]
4750
workspace = true
4851

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ docker run \
6767
--name vectorchord-demo \
6868
-e POSTGRES_PASSWORD=mysecretpassword \
6969
-p 5432:5432 \
70-
-d ghcr.io/tensorchord/vchord-postgres:pg17-v0.4.2
70+
-d ghcr.io/tensorchord/vchord-postgres:pg17-v0.4.3
7171
```
7272
> [!NOTE]
7373
> In addition to the base image with the VectorChord extension, we provide an all-in-one image, `tensorchord/vchord-suite:pg17-latest`. This comprehensive image includes all official TensorChord extensions, including `VectorChord`, `VectorChord-bm25` and `pg_tokenizer.rs` . Developers should select an image tag that is compatible with their extension's version, as indicated in [the support matrix](https://github.com/tensorchord/VectorChord-images?tab=readme-ov-file#support-matrix).

crates/algorithm/src/tuples.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ impl WithReader for MetaTuple {
142142
MAGIC => {
143143
let checker = RefChecker::new(source);
144144
if VERSION != *checker.prefix::<u64>(size_of::<Tag>()) {
145-
panic!("deserialization: bad version number");
145+
panic!(
146+
"deserialization: bad version number; {}",
147+
"after upgrading VectorChord, please use REINDEX to rebuild the index."
148+
);
146149
}
147150
let header: &MetaTupleHeader = checker.prefix(size_of::<Tag>());
148151
let centroid_prefetch =

crates/rabitq/src/block.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ fn compress(vector: &[f32]) -> Vec<[f32; 16]> {
183183
]
184184
};
185185

186-
let (arrays, reminder) = vector.as_chunks::<4>();
186+
let (arrays, remainder) = vector.as_chunks::<4>();
187187
let mut result = arrays.iter().copied().map(f).collect::<Vec<_>>();
188-
if !reminder.is_empty() {
188+
if !remainder.is_empty() {
189189
let mut array = [0.0; 4];
190-
array[..reminder.len()].copy_from_slice(reminder);
190+
array[..remainder.len()].copy_from_slice(remainder);
191191
result.push(f(array));
192192
}
193193
result

0 commit comments

Comments
 (0)