DROP_TEXT_SEARCH_CONFIGURATION(7pg14)

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

πŸ’– NAME πŸ’–

Okay so this is the DROP_TEXT_SEARCH_CONFIGURATION(7pg14) page from the PostgreSQL 14.24 docs, bestie β€” and it’s literally about how to remove a text search configuration. That’s the whole vibe. πŸŽ€

✨ SYNOPSIS ✨

Here’s the exact shape of the command, no cap:

DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]

πŸ¦‹ DESCRIPTION πŸ¦‹

DROP TEXT SEARCH CONFIGURATION drops an existing text search configuration. To execute this command you must be the owner of the configuration. Periodt. πŸ’…

🌸 PARAMETERS 🌸

  • IF EXISTS β€” Do not throw an error if the text search configuration does not exist. A notice is issued in this case β€” just a little FYI, not a whole meltdown. 🫢
  • name β€” The name (optionally schema-qualified) of an existing text search configuration. 🏷️
  • CASCADE β€” Automatically drop objects that depend on the text search configuration, and in turn all objects that depend on those objects (see Section 5.14). Yes, it’s giving chain reaction. πŸ”₯
  • RESTRICT β€” Refuse to drop the text search configuration if any objects depend on it. This is the default. The safe default, periodt. πŸ‘‘

πŸ”₯ EXAMPLES πŸ”₯

Remove the text search configuration my_english:

DROP TEXT SEARCH CONFIGURATION my_english;

Ngl, this command will not succeed if there are any existing indexes that reference the configuration in to_tsvector calls. Add CASCADE to drop such indexes along with the text search configuration. πŸ’€

πŸ‘‘ COMPATIBILITY πŸ‘‘

There is no DROP TEXT SEARCH CONFIGURATION statement in the SQL standard. Sad but true. 😭

🫢 SEE ALSO 🫢

Go read these next, iykyk:


Later bestie β€” this page is from PostgreSQL 14.24, dated 2026. πŸ’–βœ¨

πŸ“¦ where this page comes from