all_substrings_tokenizer
all_substrings_tokenizer · Tokenizes text to all substrings bigger than a fixed character length.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100384 | all_substrings_tokenizer | all_substrings_tokenizer | 0.1 | FTS | Unknown | C |
Usage
Sources:
all_substrings_tokenizer expands text into every contiguous substring containing at least three characters. It is a small multibyte-aware set-returning function that can feed custom search, matching, or demonstration pipelines; it is not a PostgreSQL text search parser or configurable tokenizer.
Core Workflow
The result contains 1二湖, 1二湖楽, 1二湖楽a, 二湖楽, 二湖楽a, and 湖楽a. Use the composite result’s token field when joining it to other data:
Object Index
all_substrings_set(text) -> setof __substrings_tokenemits the substrings.__substrings_tokenis a composite type with onetoken textattribute.
Operational Notes
The minimum length is hard-coded as three characters; there is no SQL parameter or GUC to change it. Inputs shorter than three characters return no rows. The function is IMMUTABLE and STRICT, so SQL NULL also returns no rows.
Output grows quadratically with input length: a string of n characters produces (n - 2) * (n - 1) / 2 rows. Bound input size before using the function on user-controlled text. Version 0.1 is relocatable and declares no preload requirement, but the upstream repository is archived and should be compatibility-tested on the target PostgreSQL release.