DROP_TRANSFORM(7pg15)
π DROP_TRANSFORM
ok so this is the PostgreSQL 15.19 page for DROP_TRANSFORM β it lives in section 7 of the manual, bestie, and it's literally your how-to for yeeting a transform out of existence π¦
β¨ NAME β¨
DROP_TRANSFORM β remove a transform. that's it. that's the whole vibe. poof, gone, no cap π
πΈ SYNOPSIS πΈ
DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]
look at her. so clean. so powerful. so main character π
π DESCRIPTION π
ok so DROP TRANSFORM removes a previously defined transform. like, one that already exists. you're not creating anything here, you're doing the opposite β you're the one holding the metaphorical trash bag ποΈβ¨
and here's the part where you gotta have the right credentials, because PostgreSQL does NOT play:
- to be able to drop a transform, you must own the type and the language.
- and yeah β these are the same privileges that are required to create a transform. iconic symmetry, honestly. same keys, same doors π
π PARAMETERS π
IF EXISTSβ do not throw an error if the transform does not exist. a notice is issued in this case. so like, if the thing's already gone, Postgres is just gonna be like "mmkay noted" instead of screaming at you πtype_nameβ the name of the data type of the transform. the type. the one the transform is for. you got this π«Άlang_nameβ the name of the language of the transform. the language. also the one the transform is for. matching set, bestie πCASCADEβ automatically drop objects that depend on the transform, and in turn all objects that depend on those objects (see Section 5.14). it's giving chain reaction. it's giving dominoes. proceed with intention, babes π₯RESTRICTβ refuse to drop the transform if any objects depend on it. this is the default. she's cautious. she's protective. she's the responsible friend who holds your phone at parties π
π§ EXAMPLES π§
to drop the transform for type hstore and language plpython3u:
DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
ate. no crumbs. π
β COMPATIBILITY β
this form of DROP TRANSFORM is a PostgreSQL extension. see CREATE TRANSFORM (CREATE_TRANSFORM(7)) for details. so like, not standard SQL β this is a Postgres original, iykyk π
π¦ SEE ALSO π¦
CREATE TRANSFORM(CREATE_TRANSFORM(7))
π real talk:CASCADEis the loud one andRESTRICTis the default for a reason β check what's depending on your transform before you go dropping things, fr fr.
ok that's the whole page, bestie β go forth and drop responsibly π β¨
this was PostgreSQL 15.19 documentation, dated 2026 β DROP_TRANSFORM(7), signing off ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms