DROP_TEXT_SEARCH_CONFIGURATION(7pg14)
π 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:
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))CREATE TEXT SEARCH CONFIGURATION(CREATE_TEXT_SEARCH_CONFIGURATION(7))
Later bestie β this page is from PostgreSQL 14.24, dated 2026. πβ¨
π¦ 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