ALTER_TEXT_SEARCH_PARSER(7pg18)

๐Ÿ“ฆ version 18.6, in opensuse-leap 16.0

โœจ 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 โญ


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