Workers & pooling functions in the VGI DuckDB extension
Function category
Workers & pooling
2 functionsInspect VGI's subprocess worker pool — which workers are alive and how often pooled workers are reused.
Signature
Returns
A table with the following columns:
| Column | Type | Description |
|---|---|---|
Column
worker_path
|
Type
VARCHAR
|
Description Executable path of the pooled worker. |
Column
data_version_spec
|
Type
VARCHAR
|
Description Data version the pooled worker reports. |
Column
implementation_version
|
Type
VARCHAR
|
Description Implementation version the pooled worker reports. |
Column
pid
|
Type
BIGINT
|
Description Operating-system process id of the worker subprocess. |
Column
age_seconds
|
Type
BIGINT
|
Description How long the worker has been alive in the pool, in seconds. |
Description
List the VGI worker subprocesses currently pooled for reuse by this DuckDB process, one row per worker with its path, version info, pid, and idle age in seconds. Useful for capacity planning and spotting stale workers. Returns no rows for launch: / unix:// transports, whose workers are pooled by the OS-level AF_UNIX socket rather than this DuckDB process.
SELECT * FROM vgi_worker_pool();
Signature
Returns
A table with the following columns:
| Column | Type | Description |
|---|---|---|
Column
worker_path
|
Type
VARCHAR
|
Description Executable path of the worker. |
Column
hits
|
Type
UBIGINT
|
Description Number of times a pooled worker was reused for this path. |
Column
misses
|
Type
UBIGINT
|
Description Number of times a new worker had to be started for this path. |
Description
Report worker-pool reuse effectiveness, one row per worker_path with how many acquisitions reused a pooled worker (hits) versus spawned a fresh one (misses). A low hit rate suggests workers are being evicted before reuse. Subprocess transport only.
SELECT * FROM vgi_worker_pool_stats();