User-defined functions

View as Markdown
Unreleased This feature will be released in v26.52. It may not be available in your region yet. The release is scheduled to complete by November 25, 2026.

jq()-based user-defined functions

The jq function runs a jq program on a jsonb value, one row at a time. List operations such as sorting and deduplicating use less memory than the equivalent SQL.

Guide Description
Write functions with jq Sort and deduplicate lists in a jsonb column, and compare the plan with SQL.
jq function reference Syntax, behavior, and examples.
Back to top ↑