DROP OPERATOR FAMILY <refpurpose>remove an operator family</refpurpose> — 演算子族を削除する
DROP OPERATOR FAMILY [ IF EXISTS ]nameUSINGindex_method[ CASCADE | RESTRICT ]
<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を指定しなければなりません。
IF EXISTSDo not throw an error if the operator family does not exist. A notice is issued in this case. 演算子族が存在しない場合にエラーとしません。 この場合注意メッセージが表示されます。
nameThe name (optionally schema-qualified) of an existing operator family. 既存の演算子族の名前(スキーマ修飾可)です。
index_methodThe name of the index access method the operator family is for. 演算子族が対象とするインデックスアクセスメソッドの名前です。
CASCADEAutomatically drop objects that depend on the operator family, and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). 演算子族に依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.15参照)。
RESTRICTRefuse to drop the operator family if any objects depend on it. This is the default. 何らかのオブジェクトが演算子族に依存している場合、削除を中止します。 これがデフォルトです。
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を付けてください。
There is no <command>DROP OPERATOR FAMILY</command> statement in the
SQL standard.
標準SQLにはDROP OPERATOR FAMILY文はありません。