DROP TRANSFORM <refpurpose>remove a transform</refpurpose> — 変換を削除する
DROP TRANSFORM [ IF EXISTS ] FORtype_nameLANGUAGElang_name[ CASCADE | RESTRICT ]
<command>DROP TRANSFORM</command> removes a previously defined transform.
DROP TRANSFORMは以前に定義された変換を削除します。
To be able to drop a transform, you must own the type and the language. These are the same privileges that are required to create a transform. 変換を削除するには、型と言語を所有していなければなりません。 これらは変換を作成するのに必要とされるのと同じ権限です。
IF EXISTSDo not throw an error if the transform does not exist. A notice is issued in this case. 変換が存在しない場合にエラーを発生させません。 この場合、注意が発行されます。
type_nameThe name of the data type of the transform. 変換のデータ型の名前です。
lang_nameThe name of the language of the transform. 変換の言語の名前です。
CASCADEAutomatically drop objects that depend on the transform, and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). 変換に依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.15参照)。
RESTRICTRefuse to drop the transform if any objects depend on it. This is the default. 変換に依存するオブジェクトがある場合は、変換を削除しません。 これがデフォルトです。
To drop the transform for type <type>hstore</type> and language
<literal>plpython3u</literal>:
hstore型で言語plpython3uの変換を削除するには次のようにします。
DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
This form of <command>DROP TRANSFORM</command> is a
<productname>PostgreSQL</productname> extension. See <xref
linkend="sql-createtransform"/> for details.
この構文のDROP TRANSFORMはPostgreSQLの拡張です。
詳しくはCREATE TRANSFORMを参照してください。