pgvector.git / summary / log / commit / refs

commit    de1f2b09dd2a40a606ffdf317f1e6396b854107a
Author:   Andrew Kane <andrew@ankane.org>
Date:     Sun Oct 29 23:41:39 2023 +0000

    Improved indexing progress queries [skip ci]


README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 17cd1a15..ac018031 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ COMMIT; Check [indexing progress](https://www.postgresql.org/docs/current/progress-reporting.html#CREATE-INDEX-PROGRESS-REPORTING) with Postgres 12+ ```sql -SELECT phase, tuples_done, tuples_total FROM pg_stat_progress_create_index; +SELECT phase, round(100.0 * tuples_done / nullif(tuples_total, 0), 1) AS progress FROM pg_stat_progress_create_index; ``` The phases for IVFFlat are: @@ -230,7 +230,7 @@ The phases for IVFFlat are: 3. `assigning tuples` 4. `loading tuples` -Note: `tuples_done` and `tuples_total` are only populated during the `loading tuples` phase +Note: `progress` is only populated during the `loading tuples` phase ## HNSW @@ -293,7 +293,7 @@ COMMIT; Check [indexing progress](https://www.postgresql.org/docs/current/progress-reporting.html#CREATE-INDEX-PROGRESS-REPORTING) with Postgres 12+ ```sql -SELECT phase, tuples_done, blocks_done, blocks_total FROM pg_stat_progress_create_index; +SELECT phase, round(100.0 * blocks_done / nullif(blocks_total, 0), 1) AS progress FROM pg_stat_progress_create_index; ``` The phases for HNSW are: [parent: bcccb7f5a583]