ALTER_TEXT_SEARCH_PARSER(7)
โจ ALTER_TEXT_SEARCH_PARSER โจ
okay bestie, this one's from the PostgreSQL 18.6 Documentation and it's literally the glow-up page for your text search parsers ๐
๐ธ NAME ๐ธ
ALTER_TEXT_SEARCH_PARSER โ change the definition of a text search parser
๐ SYNOPSIS ๐
ALTER TEXT SEARCH PARSER name RENAME TO new_name
ALTER TEXT SEARCH PARSER name SET SCHEMA new_schema
๐ฆ DESCRIPTION ๐ฆ
So ALTER TEXT SEARCH PARSER changes the definition of a text search parser. That's the whole vibe.
Now, currently, the only supported functionality is to change the parser's name. That's it. That's the plot. Don't come in here expecting more, because rn there isn't more. ๐
โ ๏ธ bestie you must be a superuser to use ALTER TEXT SEARCH PARSER. No superuser, no parser renaming, no exceptions. it's giving exclusive ๐
๐ PARAMETERS ๐
nameโ the name (optionally schema-qualified) of an existing text search parser. yes, you can qualify it with the schema, go off ๐new_nameโ the new name of the text search parser. the rebrand, the new era, the main character name change โจnew_schemaโ the new schema for the text search parser. moving it to a whole new neighborhood, we love a relocation ๐ก
๐ COMPATIBILITY ๐
ngl there is no ALTER TEXT SEARCH PARSER statement in the SQL standard. not a thing. doesn't exist. this is a Postgres-exclusive situation, iykyk ๐ซถ
โญ SEE ALSO โญ
CREATE TEXT SEARCH PARSER(CREATE_TEXT_SEARCH_PARSER(7))DROP TEXT SEARCH PARSER(DROP_TEXT_SEARCH_PARSER(7))
and that's the whole page, bestie!! this iconic lil doc came to you straight from PostgreSQL 18.6, dated 2026, and fr fr it ate ๐ โจ go rename something, you superuser you ๐
๐ฆ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 ยท PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 ยท PostgreSQL
- arch rolling: postgresql 18.6-4 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 ยท PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms