Postgresql 中文操作指南
Description
DROP TRANSFORM 删除先前定义的转换。
DROP TRANSFORM removes a previously defined 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.
Parameters
-
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 Section 5.14).
-
-
RESTRICT
-
Refuse to drop the transform if any objects depend on it. This is the default.
-
Examples
要删除类型 hstore 和语言 plpython3u 的转换:
To drop the transform for type hstore and language plpython3u:
DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
Compatibility
此形式的 DROP TRANSFORM 是 PostgreSQL 扩展。有关详细信息,请参见 CREATE TRANSFORM 。
This form of DROP TRANSFORM is a PostgreSQL extension. See CREATE TRANSFORM for details.