Skip to content

docs(mat-views): document changing materialized views in place, backfill past REFRESH LIMIT, and RESUME - #670

Draft
puzpuzpuz wants to merge 1 commit into
mainfrom
puzpuzpuz_tolerant_mat_views
Draft

puzpuzpuz wants to merge 1 commit into
mainfrom
puzpuzpuz_tolerant_mat_views

Conversation

@puzpuzpuz

@puzpuzpuz puzpuzpuz commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Documents questdb/questdb#8452.

  • New pages for ALTER MATERIALIZED VIEW ADD COLUMN, DROP COLUMN, AS (with WITH BASE) and DROP PARTITION.
  • Users can find how to add, drop, rename and retype view columns while keeping the view's rows.
  • REFRESH ... RESUME [SKIP BACKLOG] is documented as the way to recover an invalid view.
  • Which base table changes keep a view valid, and the rows a view keeps after base rows go away.
  • Backfill past REFRESH LIMIT: backfill_max_ts, whole-commit refusals, ILP/TCP silent drops, period view cap, timing caveats.
  • Period views: REFRESH LIMIT must cover LENGTH plus DELAY plus the zone's DST step; the wall-clock setting does not lift it.
  • CREATE MATERIALIZED VIEW column list and the explicit column name rules, with breaking change notes.
  • REFRESH ... FULL keeping rows older than the limit, and failed RANGE refreshes keeping the view valid.
  • New materialized_views() columns, cairo.mat.view.refresh.limit.wall.clock.enabled, and SHOW CREATE column list output.
  • Enterprise: the ALTER MATERIALIZED VIEW and INSERT INTO MATERIALIZED VIEW permissions, and their upgrade migration.
  • Upgrade notes: stricter view SQL, replicas first before ALTER ... AS or view DROP PARTITION, no downgrade after view column changes.
  • Fixes the Enterprise permissions of the ADD INDEX, DROP INDEX, SET EXPIRE, SET REFRESH and SET REFRESH LIMIT pages.

The pages name QuestDB 10.3.0 and QuestDB Enterprise 4.3.0 as the first versions with these changes; update them if the release takes other numbers. Merge after questdb/questdb#8452.

Document the materialized view changes of questdb/questdb#8452.

New pages for ALTER MATERIALIZED VIEW ADD COLUMN, DROP COLUMN,
AS (with WITH BASE) and DROP PARTITION. The concepts page explains
how refresh maps query columns to view columns by name, which base
table changes keep a view valid, the rows it keeps after base rows
go away, recovery with REFRESH ... RESUME [SKIP BACKLOG], workflows
to add, drop and rename view columns, and backfill past the
REFRESH LIMIT with its rules, period view cap and timing caveats.

CREATE MATERIALIZED VIEW documents the column list and the explicit
column name rules. REFRESH documents RESUME, FULL keeping rows past
the limit, and RANGE failures that keep the view valid. SET REFRESH
LIMIT documents the data-anchored boundary and the rule that a
period view's limit covers LENGTH plus DELAY plus the zone's DST
step, which the wall-clock setting does not lift. Adds the new
materialized_views() columns, the wall-clock setting, the Enterprise
ALTER MATERIALIZED VIEW and INSERT INTO MATERIALIZED VIEW
permissions, upgrade notes and SHOW CREATE column list output.

Also corrects the Enterprise permissions that several ALTER
MATERIALIZED VIEW pages listed as ALTER MATERIALIZED VIEW, which
did not exist as a permission before this change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant