DROP_TRANSFORM - remove a transform
| Use Case | Command | Description |
|---|---|---|
| Drop a transform | DROP TRANSFORM FOR type_name LANGUAGE lang_name; |
Removes a previously defined transform. |
| Drop with existence check | DROP TRANSFORM IF EXISTS FOR type_name LANGUAGE lang_name; |
Does not throw error if the transform does not exist. |
| Drop with cascade | DROP TRANSFORM FOR type_name LANGUAGE lang_name CASCADE; |
Automatically drops dependent objects. |
| Drop with restrict | DROP TRANSFORM FOR type_name LANGUAGE lang_name RESTRICT; |
Refuses drop if dependents exist (default). |
DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]
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.
To drop the transform for type hstore and language plpythonu:
DROP TRANSFORM FOR hstore LANGUAGE plpythonu;
This form of DROP TRANSFORM is a PostgreSQL extension. See CREATE TRANSFORM (CREATE_TRANSFORM(7)) for details.
CREATE TRANSFORM (CREATE_TRANSFORM(7))
PostgreSQL 14.23 2026 DROP TRANSFORM(7)
Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-09 09:28 @2600:1f28:365:80b0:50b3:453e:ff52:20f7
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format