DROP TRANSFORM

DROP TRANSFORM

7

SQL - Language Statements

DROP TRANSFORM

remove a transform

DROP TRANSFORM \[ IF EXISTS \] FOR

type\_name

LANGUAGE

lang\_name

\[ CASCADE \| RESTRICT \]

Description {#sql-droptransform-description}
===========

`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 [???](#ddl-depend)).

`RESTRICT`

:   Refuse to drop the transform if any objects depend on it. This is
    the default.

Examples {#sql-droptransform-examples}
========

To drop the transform for type `hstore` and language `plpython3u`:

    DROP TRANSFORM FOR hstore LANGUAGE plpython3u;

Compatibility {#sql-droptransform-compat}
=============

This form of `DROP TRANSFORM` is a PostgreSQL extension. See
[???](#sql-createtransform) for details.

See Also
========
