2 doc/src/sgml/ref/drop_transform.sgml
3 PostgreSQL documentation
6 <refentry id=
"sql-droptransform">
7 <indexterm zone=
"sql-droptransform">
8 <primary>DROP TRANSFORM
</primary>
12 <refentrytitle>DROP TRANSFORM
</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
18 <refname>DROP TRANSFORM
</refname>
19 <refpurpose>remove a transform
</refpurpose>
24 DROP TRANSFORM [ IF EXISTS ] FOR
<replaceable>type_name
</replaceable> LANGUAGE
<replaceable>lang_name
</replaceable> [ CASCADE | RESTRICT ]
28 <refsect1 id=
"sql-droptransform-description">
29 <title>Description
</title>
32 <command>DROP TRANSFORM
</command> removes a previously defined transform.
36 To be able to drop a transform, you must own the type and the language.
37 These are the same privileges that are required to create a transform.
42 <title>Parameters
</title>
47 <term><literal>IF EXISTS
</literal></term>
50 Do not throw an error if the transform does not exist. A notice is issued
57 <term><replaceable>type_name
</replaceable></term>
61 The name of the data type of the transform.
67 <term><replaceable>lang_name
</replaceable></term>
71 The name of the language of the transform.
77 <term><literal>CASCADE
</literal></term>
80 Automatically drop objects that depend on the transform,
81 and in turn all objects that depend on those objects
82 (see
<xref linkend=
"ddl-depend"/>).
88 <term><literal>RESTRICT
</literal></term>
91 Refuse to drop the transform if any objects depend on it. This is the
99 <refsect1 id=
"sql-droptransform-examples">
100 <title>Examples
</title>
103 To drop the transform for type
<type>hstore
</type> and language
104 <literal>plpython3u
</literal>:
106 DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
107 </programlisting></para>
110 <refsect1 id=
"sql-droptransform-compat">
111 <title>Compatibility
</title>
114 This form of
<command>DROP TRANSFORM
</command> is a
115 <productname>PostgreSQL
</productname> extension. See
<xref
116 linkend=
"sql-createtransform"/> for details.
121 <title>See Also
</title>
123 <simplelist type=
"inline">
124 <member><xref linkend=
"sql-createtransform"/></member>