DROP TEXT SEARCH DICTIONARY
DROP TEXT SEARCH DICTIONARY — Remove a text search dictionary
Synopsis
DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Description
DROP TEXT SEARCH DICTIONARY removes an existing text search dictionary. To execute this command, you must be the owner of the dictionary.
Parameters
IF EXISTS
Do not throw an error if the text search dictionary does not exist. A notice is issued in this case.
name
The name of an existing text search dictionary (optionally schema-qualified).
CASCADE
Automatically drop objects that depend on the text search dictionary, and in turn all objects that depend on those objects.
RESTRICT
Refuse to drop the text search dictionary if any objects depend on it. This is the default.
Examples
# Remove the text search dictionary english:
DROP TEXT SEARCH DICTIONARY english;
# This command will not succeed if any text search configurations using this dictionary exist. Add CASCADE to drop such configurations along with the dictionary.