CREATE_TEXT_SEARCH_CONFIGURATION(7pg14)

πŸ“¦ version 14.24, in opensuse-leap 16.0

πŸ’… 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 πŸ’€

the PARSER and COPY options 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 πŸ”₯

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