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

DROP TEXT SEARCH TEMPLATE

DROP TEXT SEARCH TEMPLATE <refpurpose>remove a text search template</refpurpose> — テキスト検索テンプレートを削除する

概要

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

説明

<title>Description</title>

<command>DROP TEXT SEARCH TEMPLATE</command> drops an existing text search template. You must be a superuser to use this command. DROP TEXT SEARCH TEMPLATEは既存のテキスト検索テンプレートを削除します。 このコマンドを実行するためには、スーパーユーザでなければなりません。

パラメータ

<title>Parameters</title>
IF EXISTS

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

name

The name (optionally schema-qualified) of an existing text search template. 既存のテキスト検索テンプレートの名称(スキーマ修飾可)です。

CASCADE

Automatically drop objects that depend on the text search template, and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). テキスト検索テンプレートに依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

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

<title>Examples</title>

Remove the text search template <literal>thesaurus</literal>: テキスト検索テンプレートthesaurusを削除します。

DROP TEXT SEARCH TEMPLATE thesaurus;

This command will not succeed if there are any existing text search dictionaries that use the template. Add <literal>CASCADE</literal> to drop such dictionaries along with the template. このテンプレートを使用するテキスト検索辞書が存在する場合、このコマンドは成功しません。 こうした辞書をテンプレートと一緒に削除するためにはCASCADEを付けてください。

互換性

<title>Compatibility</title>

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

関連項目

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