From 312617392c8a32121907496f05c23fce1e3d056c Mon Sep 17 00:00:00 2001 From: fa-se <53835739+fa-se@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:50:31 +0200 Subject: [PATCH] fixed invalid table name that caused bm25_refresh to fail (#15) #13 Signed-off-by: fa-se <53835739+fa-se@users.noreply.github.com> --- src/sql/finalize.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/finalize.sql b/src/sql/finalize.sql index 33fc9ed..5ecf64d 100644 --- a/src/sql/finalize.sql +++ b/src/sql/finalize.sql @@ -73,7 +73,7 @@ DECLARE upd_docs INT; upd_dims INT; BEGIN - SELECT attrelid, attname INTO tab, col FROM bm_catalog.bm25 WHERE matrelid = mat; + SELECT attrelid, attname INTO tab, col FROM bm_catalog.pg_bm25 WHERE matrelid = mat; EXECUTE format('REFRESH MATERIALIZED VIEW %s', mat); EXECUTE format('SELECT sum(how_many_tokens) FROM %s', mat) INTO upd_words; EXECUTE format('SELECT count(%s) FROM %s', col, tab) INTO upd_docs;