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

DROP OPERATOR FAMILY

DROP OPERATOR FAMILY <refpurpose>remove an operator family</refpurpose> — 演算子族を削除する

概要

DROP OPERATOR FAMILY [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]

説明

<title>Description</title>

<command>DROP OPERATOR FAMILY</command> drops an existing operator family. To execute this command you must be the owner of the operator family. DROP OPERATOR FAMILYは既存の演算子族を削除します。 このコマンドを実行するためには、その演算子族の所有者でなければなりません。

<command>DROP OPERATOR FAMILY</command> includes dropping any operator classes contained in the family, but it does not drop any of the operators or functions referenced by the family. If there are any indexes depending on operator classes within the family, you will need to specify <literal>CASCADE</literal> for the drop to complete. DROP OPERATOR FAMILYには、その演算子族に含まれるすべての演算子クラスの削除も含まれています。 しかし、演算子族から参照される演算子や関数はまったく削除されません。 この演算子族内の演算子クラスに依存するインデックスが存在する場合、削除を完了させるためにはCASCADEを指定しなければなりません。

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the operator family does not exist. A notice is issued in this case. 演算子族が存在しない場合にエラーとしません。 この場合注意メッセージが表示されます。

name

The name (optionally schema-qualified) of an existing operator family. 既存の演算子族の名前(スキーマ修飾可)です。

index_method

The name of the index access method the operator family is for. 演算子族が対象とするインデックスアクセスメソッドの名前です。

CASCADE

Automatically drop objects that depend on the operator family, and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). 演算子族に依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

Refuse to drop the operator family if any objects depend on it. This is the default. 何らかのオブジェクトが演算子族に依存している場合、削除を中止します。 これがデフォルトです。

<title>Examples</title>

Remove the B-tree operator family <literal>float_ops</literal>: B-tree演算子族float_opsを削除します。

DROP OPERATOR FAMILY float_ops USING btree;

This command will not succeed if there are any existing indexes that use operator classes within the family. Add <literal>CASCADE</literal> to drop such indexes along with the operator family. この演算子族内の演算子クラスを使用するインデックスが存在する場合、このコマンドは失敗します。 演算子族に関連するこうしたインデックスも削除する場合はCASCADEを付けてください。

互換性

<title>Compatibility</title>

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

関連項目

<title>See Also</title> ALTER OPERATOR FAMILY, CREATE OPERATOR FAMILY, ALTER OPERATOR CLASS, CREATE OPERATOR CLASS, DROP OPERATOR CLASS