DROP_TRANSFORM(7pg16)
π DROP_TRANSFORM(7pg16) β the glow-up where transforms get β¨removedβ¨
okay bestie, so you know how this is the PostgreSQL 16 docs situation? this page is literally the DROP TRANSFORM page and it's here to tell you how to yeet a transform out of existence. no cap, it's a short one, we love a concise icon π
π¦ NAME
DROP_TRANSFORM β remove a transform, periodt.
πΈ SYNOPSIS
DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]
look at her. she's short, she's iconic, she's the whole vibe check π
β¨ DESCRIPTION
so DROP TRANSFORM removes a previously defined transform. that's the whole assignment, bestie π
but here's the tea: 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. so like... you gotta have the keys to both houses, iykyk π
π PARAMETERS
IF EXISTSβ do not throw an error if the transform does not exist. a notice is issued in this case. so instead of a whole dramatic meltdown π you just get a little "hey, it wasn't there" note. very demure, very mindful.type_nameβ the name of the data type of the transform. like, which type are we talking about, bestie?lang_nameβ the name of the language of the transform. the language part of the situation π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 domino effect, it's giving "and then everything that touched that also goes" π₯ careful with this one, she's powerful.RESTRICTβ refuse to drop the transform if any objects depend on it. this is the default. so by default she's not gonna let you wreck the whole ecosystem, she's gonna say no π
π§ EXAMPLES
to drop the transform for type hstore and language plpython3u:
DROP TRANSFORM FOR hstore LANGUAGE plpython3u;
slay, and it's gone π«
π COMPATIBILITY
this form of DROP TRANSFORM is a PostgreSQL extension. see CREATE TRANSFORM (CREATE_TRANSFORM(7)) for details. so like, don't expect other databases to have this exact vibe, it's a Postgres original π«Ά
π SEE ALSO
CREATE TRANSFORM (CREATE_TRANSFORM(7)) β the birth, if you will β¨
and that's the whole page bestie!! π this little icon lives in the PostgreSQL 16.15 docs, dated 2026, and it's filed under DROP TRANSFORM(7). go forth and drop responsibly π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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