CREATE_TEXT_SEARCH_CONFIGURATION(7pg14)
π
CREATE_TEXT_SEARCH_CONFIGURATION β the PostgreSQL 14 glow-up (that's 7pg14, bestie, write it down)
okay so picture this: it's a 7pg14 manpage, the vibe is immaculate, and it's literally all about defining a brand-new text search configuration. no cap, it's giving "main character energy" for your search setup. let's get into it π
β¨ NAME β¨
CREATE_TEXT_SEARCH_CONFIGURATION β define a new text search configuration π
π¦ SYNOPSIS π¦
CREATE TEXT SEARCH CONFIGURATION name (
PARSER = parser_name |
COPY = source_config
)
πΈ DESCRIPTION πΈ
so CREATE TEXT SEARCH CONFIGURATION creates a new text search configuration. slay. a text search configuration specifies a text search parser (the thingy that can divide a string into tokens) plus dictionaries (the things that can be used to determine which tokens are of interest for searching). that's the whole squad right there π«Ά
if you only specify the parser, then lowkey your new text search configuration initially has no mappings from token types to dictionaries, and therefore will ignore all words. π like, every word. gone. subsequent ALTER TEXT SEARCH CONFIGURATION commands must be used to create mappings and make the configuration actually useful. alternatively β plot twist β you can just copy an existing text search configuration. iconic behaviour honestly.
if a schema name is given, then the text search configuration is created in the specified schema. otherwise it is created in the current schema. no notes β¨
the user who defines a text search configuration becomes its owner. it's yours now, bestie, that's your baby π
refer to Chapter 12 for further information if you want the deep lore π
π§ PARAMETERS π§
nameβ the name of the text search configuration to be created. and yes, the name can be schema-qualified. go off πparser_nameβ the name of the text search parser to use for this configuration. this is the tokenizer bestie of your dreams.source_configβ the name of an existing text search configuration to copy. copy-paste but make it fashion β¨
π NOTES π
thePARSERandCOPYoptions are mutually exclusive, because when an existing configuration is copied, its parser selection is copied too. so like... pick one. not both. it's giving "you can't sit with both tables" π
π COMPATIBILITY π
there is literally no CREATE TEXT SEARCH CONFIGURATION statement in the SQL standard. not a single one. we're built different, iykyk β
π₯ SEE ALSO π₯
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))DROP TEXT SEARCH CONFIGURATION(DROP_TEXT_SEARCH_CONFIGURATION(7))
go read those next, bestie, they're the sequel and the breakup arc π¦
and that's the whole page!! ty for coming to my ted talk, this was PostgreSQL 14.24, dated 2026, and the title on the tin is CREATE_TEXT_SEARCH_CONFIGURATION(7) π mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms