Skip to content

Maintenance functions in the VGI DuckDB extension

Function category

Maintenance

2 functions

Clear VGI's caches and pooled workers to force fresh state on the next call.

vgi_clear_cache

Table function Maintenance
Signature
vgi_clear_cache() None
Returns

A table with the following columns:

Column Success Type BOOLEAN Description True when the caches were cleared.
Description
1 Example 1
SELECT * FROM vgi_clear_cache();

vgi_worker_pool_flush

Table function Maintenance
Signature
vgi_worker_pool_flush() None
Returns

A table with the following columns:

Column flushed Type BIGINT Description Number of subprocess-pooled workers that were flushed.
Description
1 Example 1
SELECT * FROM vgi_worker_pool_flush();