Removes a text search configuration.
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] <name> [ CASCADE | RESTRICT ]
DROP TEXT SEARCH CONFIGURATION
drops an existing text search configuration. To run this command you must be the owner of the configuration.
IF EXISTS
name
CASCADE
RESTRICT
Remove the text search configuration my_english:
DROP TEXT SEARCH CONFIGURATION my_english;
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.
There is no DROP TEXT SEARCH CONFIGURATION
statement in the SQL standard.
ALTER TEXT SEARCH CONFIGURATION, CREATE TEXT SEARCH CONFIGURATION
Parent topic: SQL Commands