Skip to content

Ext V: materialized views

Extension tag V (ASCII V) holds a materialized view definition:

Field Encoding Meaning
count varint number of views
id u32 little-endian the view id used in keys
building u8 1 while the view is still being built
name varint len ‖ utf8 the view name
sql varint len ‖ utf8 the defining SQL

The last four fields repeat once per view. The view data itself is stored under first byte 0x07, see Materialized view keys.