Skip to content

fix(security)!: bound the result list of set-returning mutations - #137

Merged
archlemon merged 2 commits into
mainfrom
fix/setof-mutation-payload
Nov 24, 2026
Merged

archlemon merged 2 commits into
mainfrom
fix/setof-mutation-payload

Conversation

@archlemon

Copy link
Copy Markdown
Member

Closes #135

…ion at 1s

The fuzzer stalled at 0 execs/sec for most of a run because each new
interesting input was minimised for up to 60s (the default
fuzzminimizetime) while the workers made no progress. The schemas were
already built once; an iteration costs about 370us of compilation.
The result list of a volatile SETOF function exposed as a custom
mutation compiles with LIMIT limits.max_page_size, in both the call
statement and the statement pair, and the cost estimate charges it that
many rows instead of 10. The function still runs to completion.

BREAKING CHANGE: a custom mutation's SETOF result list holds at most
limits.max_page_size items.
@archlemon
archlemon merged commit fd4694c into main Nov 24, 2026
4 checks passed
@archlemon
archlemon deleted the fix/setof-mutation-payload branch November 24, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Volatile SETOF function mutations: payload result list is unbounded and costed at 10

1 participant