Skip to content

Commit

Permalink
fixed invalid table name that caused bm25_refresh to fail (#15)
Browse files Browse the repository at this point in the history
#13

Signed-off-by: fa-se <[email protected]>
  • Loading branch information
fa-se authored Jul 5, 2024
1 parent 419aadf commit 3126173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sql/finalize.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3126173

Please sign in to comment.