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
I am using pglite in tandem with electric, while also adding a few tables and views.
In my install procedure I have a few occasions where a read query can be made before the objects (tables, views) are created. I am getting the following kinds of errors:
GoalsWidget.tsx:49 Uncaught (in promise) error: relation "non_fallback_only_view" does not exist
Subsequent attempts to CREATEVIEWs then cause errors, though it seems indexes can get created... It also seems that most INSERT queries do execute, so my initialisation process can continue. When I get to a CREATE OR REPLACE VIEW, I then get a :
RuntimeError: null function or function signature mismatch
at postgres.wasm
at postgres.wasm
...
And
electric-sql_pglite.js:4239 error performing snapshot: Infinity
Uncaught (in promise) Infinity
... many times then
electric-sql_pglite.js:4239 error performing snapshot: RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
If I then reload everything and execute the CREATEs that failed, they all execute fine.
Basically, it appears that any sort of query error puts the db into an invalid state, and causes many things to break after that, with basically everything getting fixed with a complete page reload.
The text was updated successfully, but these errors were encountered:
I am using
pglite
in tandem withelectric
, while also adding a few tables and views.In my install procedure I have a few occasions where a read query can be made before the objects (tables, views) are created. I am getting the following kinds of errors:
Which are then followed by:
Subsequent attempts to
CREATE
VIEW
s then cause errors, though it seems indexes can get created... It also seems that mostINSERT
queries do execute, so my initialisation process can continue. When I get to aCREATE OR REPLACE VIEW
, I then get a :And
If I then reload everything and execute the
CREATE
s that failed, they all execute fine.Basically, it appears that any sort of query error puts the db into an invalid state, and causes many things to break after that, with basically everything getting fixed with a complete page reload.
The text was updated successfully, but these errors were encountered: