Skip to content

bug: No such file or directory home/runner/work/pgvecto.rs/pgvecto.rs/crates/quantization/src/scalar/mod.rs #573

Open
@janljd

Description

@janljd

Environment

docker

image tensorchord/pgvecto-rs:pg16-v0.3.0

image tensorchord/pgvecto-rs: pg16-v0.2.1

Step

  1. create table with embedding vector(3072)

  2. create index with [indexing.hnsw.quantization.scalar]

    CREATE TABLE dbpedia_3072_scalar (
                id bigserial primary key, 
                title text,
                content text,
                embedding vector(3072)
                );
               
    CREATE INDEX hnsw_cosine_index_dbpedia_3072_scalar ON dbpedia_3072_scalar USING vectors (embedding vector_cos_ops) WITH (options='[indexing.hnsw]
    m = 16
    ef_construction = 100
    [indexing.hnsw.quantization.scalar]
    ');
    
  3. insert data

  4. restart docker

Restart Log

2024-08-27 03:51:29.688 [31] LOG:  Find directory "pg_vectors/indexes/0000000000000000000000000000000066cd4140d47c4027000000050001c7e8/segments/941d58fc-d25b-40e4-a3bb-987221c83617".
2024-08-27 03:51:29.746 [31] LOG:  Panickied. Info: PanicInfo { payload: Any { .. }, message: Some(called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }), location: Location { file: "/home/runner/work/pgvecto.rs/pgvecto.rs/crates/quantization/src/scalar/mod.rs", line: 79, col: 64 }, can_unwind: true, force_no_backtrace: false }. Backtrace: disabled backtrace.
2024-08-27 03:51:29.895 UTC [31] ERROR:  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
2024-08-27 03:51:29.945 UTC [1] LOG:  background worker "vectors" (PID 31) exited with exit code 1

postgresql-2024-08-27_035129.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions