You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to refresh a materialised view throws error:
Uncaught error: expected one dependency record for TOAST table, found 4
Reproduction:
import{PGlite}from"../dist/index.js";console.log("Starting...");constpg=newPGlite();// Test materialized viewawaitpg.exec(` CREATE TABLE IF NOT EXISTS test ( id SERIAL PRIMARY KEY, name TEXT );`);awaitpg.exec(` INSERT INTO test (name) VALUES ('test');`);awaitpg.exec(` CREATE MATERIALIZED VIEW test_view AS SELECT * FROM test;`);constres=awaitpg.exec(` SELECT * FROM test_view;`);console.log(res);awaitpg.exec(` INSERT INTO test (name) VALUES ('test2');`);constres2=awaitpg.exec(` SELECT * FROM test_view;`);console.log(res2);awaitpg.exec(` REFRESH MATERIALIZED VIEW test_view;`);constres3=awaitpg.exec(` SELECT * FROM test_view;`);console.log(res3);
The text was updated successfully, but these errors were encountered:
Attempting to refresh a materialised view throws error:
Reproduction:
The text was updated successfully, but these errors were encountered: