Files
datastore/programs/server/user_defined_executable_function_drivers
Alexey Milovidov e8bbce3df9 Increase executable command pipe capacity
Add an optional `command_pipe_capacity` setting for executable commands and
pass it through `ShellCommandSource` to `ShellCommand`, where it uses the
existing `PipeFDs::tryIncreaseSize` helper on the command pipes before `exec`.

The generated C-body drivers request a 1 MiB pipe capacity and the wrapper also
tries to increase its own `stdin` and `stdout` pipe capacity. This can reduce
short-write wakeups in the `DockerC` path, while preserving the previous default
for other executable command users.

PR: https://github.com/ClickHouse/ClickHouse/pull/105131

Tests:
- `ninja -C build programs/clickhouse`
- `python3 -m py_compile programs/server/user_defined_executable_function_drivers/c_driver_common.py`
- `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04241_executable_udf_driver.sh`
- `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04242_executable_udf_driver_errors.sh`
2026-05-17 00:39:48 +02:00
..