Skip to main content
Outputs the write-ahead log usage & configuration of the given tables.
DESCRIBE WAL Syntax
The columns returned are those of the ki_wal virtual catalog table, which describes each in detail.
Only regular, persisted tables have a write-ahead log. Temporary tables, parent tables, result tables, views, logical views, and SQL procedures will return no record, so an empty result indicates that the named object has no write-ahead log—not that nothing has been written to it.

Parameters

FOR

Optional keyword for clarity

<schema name>

Name of the schema containing the table whose write-ahead log will be described

<table name>

Name of the table whose write-ahead log will be described

*

Describe the write-ahead logs of all tables

Options

SHOW_SETTINGS is the only option accepted; any other will return an error.

SHOW_SETTINGS

Whether to include the SETTINGS column in the output; the default is true

Response

The response to DESCRIBE WAL is a seven-column result set, one record per table:
WAL_SIZE, WAL_CAPACITY, PERCENT_USED & UNCOMMITTED will all be null if no part of the table reports a write-ahead log. If a size is reported but no capacity is available, WAL_SIZE & UNCOMMITTED will be populated while WAL_CAPACITY & PERCENT_USED remain null.

Examples

To describe the write-ahead log of a single table:
DESCRIBE WAL Example
DESCRIBE WAL Output
To describe the write-ahead logs of several tables:
DESCRIBE WAL Multiple Table Example
To describe the write-ahead log of a table, omitting its configuration:
DESCRIBE WAL Without Settings Example
DESCRIBE WAL Without Settings Output