DROP TRANSFORM
Read PG 18 manual ↗remove a transform
Syntax
DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]
Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
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 (see Section 5.15).
RESTRICTRefuse to drop the transform if any objects depend on it. This is the default.
Examples
To drop the transform for type hstore and language plpython3u:
DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
Compatibility
This form of DROP TRANSFORM is a PostgreSQL extension. See CREATE TRANSFORM for details.
See Also
CREATE TRANSFORMVersion history 5
- PG 19 → 20changed
- PG 18 → 19changed
- PG 16 → 17changed
- PG 14 → 15changed
- PG 11 → 12changed
Related entries
Definition snapshot: 2026-09-14T13:14:25.700916+00:00@99e6866c · English manual source