バージョンごとのドキュメント一覧

DROP TEXT SEARCH CONFIGURATION

DROP TEXT SEARCH CONFIGURATION <refpurpose>remove a text search configuration</refpurpose> — テキスト検索設定を削除する

概要

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

説明

<title>Description</title>

<command>DROP TEXT SEARCH CONFIGURATION</command> drops an existing text search configuration. To execute this command you must be the owner of the configuration. DROP TEXT SEARCH CONFIGURATIONは既存のテキスト検索設定を削除します。 このコマンドを実行するためには、その設定の所有者でなければなりません。

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the text search configuration does not exist. A notice is issued in this case. テキスト検索設定が存在しない場合でもエラーとしません。 この場合は注意が発行されます。

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 <xref linkend="ddl-depend"/>). テキスト検索設定に依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

Refuse to drop the text search configuration if any objects depend on it. This is the default. 依存するオブジェクトが存在する場合、テキスト検索設定の削除を中止します。 これがデフォルトです。

<title>Examples</title>

Remove the text search configuration <literal>my_english</literal>: テキスト検索設定my_englishを削除します。

DROP TEXT SEARCH CONFIGURATION my_english;

This command will not succeed if there are any existing indexes that reference the configuration in <function>to_tsvector</function> calls. Add <literal>CASCADE</literal> to drop such indexes along with the text search configuration. to_tsvector呼び出し内でこの設定を参照するインデックスが存在する場合、このコマンドは成功しません。 こうしたインデックスをテキスト検索設定と一緒に削除するためにはCASCADEを付けてください。

互換性

<title>Compatibility</title>

There is no <command>DROP TEXT SEARCH CONFIGURATION</command> statement in the SQL standard. 標準SQLにはDROP TEXT SEARCH CONFIGURATION文はありません。

関連項目

<title>See Also</title> ALTER TEXT SEARCH CONFIGURATION, CREATE TEXT SEARCH CONFIGURATION