ALTER MATERIALIZED VIEW RESUME WAL
info
Materialized View support is in beta.
It may not be fit for production use.
Please let us know if you run into issues.
Either:
- Email us at support@questdb.io
- Join our public Slack
- Post on our Discourse community
ALTER MATERIALIZED VIEW RESUME WAL
restarts
WAL table transactions after resolving errors.
Accepts the same optional sequencerTxn
input as the
ALTER TABLE RESUME WAL
operation. Refer to that page for more details.
Syntax
Example
Use the wal_tables()
function to
investigate the materialized view status:
List all tables and materialized viewsDemo this query
wal_tables();
name | suspended | writerTxn | sequencerTxn |
---|---|---|---|
trades_1h | true | 3 | 5 |
The trades_1h
view is suspended. The last successful commit is 3
.
The following query restarts transactions from the failed transaction, 4
:
ALTER MATERIALIZED VIEW trades_1h RESUME WAL;
See also
For more information on the concept, see the reference on materialized views.