Updated on 2025-07-22 GMT+08:00

DROP TEXT SEARCH CONFIGURATION

Function

DROP TEXT SEARCH CONFIGURATION deletes an existing text search configuration.

Precautions

To run the DROP TEXT SEARCH CONFIGURATION command, you must be the owner of the text search configuration.

Syntax

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

Parameter Description

Table 1 DROP TEXT SEARCH CONFIGURATION parameters

Parameter

Description

Value Range

IF EXISTS

Sends a notice instead of an error if the specified text search configuration does not exist.

-

name

Specifies the name (optionally schema-qualified) of a text search configuration to be deleted.

An existing text search configuration name.

CASCADE | RESTRICT

Specifies how to process related data in the dependent object when a delete operation is performed.

  • CASCADE: Automatically deletes objects that depend on the text search configuration to be deleted.
  • RESTRICT: Refuses to delete the text search configuration if any objects depend on it. This is the default. This is the default.

Examples

Delete the text search configuration ngram1:

1
DROP TEXT SEARCH CONFIGURATION ngram1;