Maintenance functions in the Radio DuckDB extension
Function category
Maintenance
3 functionsBuffer flushing, polling sleeps, and version inspection.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
timeout
|
Type
INTERVAL
|
Mode Positional | Description |
Description
Waits up to timeout for every subscription's transmit queue to finish (send, or give up on) its pending messages. Returns all_messages_flushed: true if everything finished in time, false otherwise. It does not touch received messages.
DuckDB 2.0 build: the wait can be interrupted, and a prepared radio_flush checks the current subscriptions on every EXECUTE.
SELECT * FROM radio_flush(INTERVAL '5 seconds');
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
duration
|
Type
INTERVAL
|
Mode Positional | Description |
Description
Sleeps for duration and returns true. A convenience for scripts that poll between reads.
DuckDB 2.0 build: the sleep can be interrupted and a negative duration is an error.
SELECT * FROM radio_sleep(INTERVAL '500 milliseconds');
Signature
Description
Returns the version of the loaded Radio extension.
DuckDB 2.0 build: returns the build version (YYYYMMDDNN, e.g. 2026110701), the same value the extension reports elsewhere; it previously returned a stale 20250601.02.
SELECT radio_version();