DROP TRANSFORM
DROP TRANSFORM — remove a transform
Synopsis
DROP TRANSFORM [ IF EXISTS ] FORtype_nameLANGUAGElang_name[ CASCADE | RESTRICT ]
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 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 (seeSection 5.14).
RESTRICTRefuse to drop the transform if any objects depend on it. This is the default.
Examples#
To drop the transform for typehstore and languageplpython3u:
DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
Compatibility#
This form ofDROP TRANSFORM is aPostgres Pro extension. SeeCREATE TRANSFORM for details.