Skip to content
DuckDB community extension

query_limiter

Reject queries before physical execution when estimated table scans exceed a configured row budget

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL query_limiter FROM community;
LOAD query_limiter FROM community;

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

SQL
SET max_rows_to_scan = 1000000;
CREATE TABLE limiter_demo AS SELECT i FROM range(100) tbl(i);
SELECT sum(i) FROM limiter_demo;

Provided by dentiny. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

Query Limiter is a DuckDB extension that rejects queries before physical execution when DuckDB estimates that table scans would exceed a configured row budget.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
dentiny/duckdb-query-limiter
License
MIT
Maintainers
dentiny
Written in
C++
Build source
739c7964074f
Build definition
Community descriptor