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

DROP TRANSFORM

DROP TRANSFORM <refpurpose>remove a transform</refpurpose> — 変換を削除する

概要

DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]

説明

<title>Description</title>

<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. 変換を削除するには、型と言語を所有していなければなりません。 これらは変換を作成するのに必要とされるのと同じ権限です。

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the transform does not exist. A notice is issued in this case. 変換が存在しない場合にエラーを発生させません。 この場合、注意が発行されます。

type_name

The name of the data type of the transform. 変換のデータ型の名前です。

lang_name

The name of the language of the transform. 変換の言語の名前です。

CASCADE

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

RESTRICT

Refuse to drop the transform if any objects depend on it. This is the default. 変換に依存するオブジェクトがある場合は、変換を削除しません。 これがデフォルトです。

<title>Examples</title>

To drop the transform for type <type>hstore</type> and language <literal>plpython3u</literal>: hstore型で言語plpython3uの変換を削除するには次のようにします。

DROP TRANSFORM FOR hstore LANGUAGE plpython3u;

互換性

<title>Compatibility</title>

This form of <command>DROP TRANSFORM</command> is a <productname>PostgreSQL</productname> extension. See <xref linkend="sql-createtransform"/> for details. この構文のDROP TRANSFORMPostgreSQLの拡張です。 詳しくはCREATE TRANSFORMを参照してください。

関連項目

<title>See Also</title> CREATE TRANSFORM