DROP_TRANSFORM(7pg13)
π DROP_TRANSFORM π
ok so bestie, welcome to DROP TRANSFORM(7) β straight outta the PostgreSQL 13.23 Documentation. this is the page where we learn how to yeet a transform into the void. let's get into it π«Ά
β¨ NAME β¨
DROP_TRANSFORM β remove a transform. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]
like, look at her. so clean. so structured. main character energy fr fr π
π¦ DESCRIPTION π¦
DROP TRANSFORM removes a previously defined transform. that's the whole job, and honestly? she ate. β¨
but okay, plot twist β there's a vibe check before you can drop one: you must own the type and the language. yep, both. these are literally the same privileges you'd need to create a transform in the first place, so if you built it, you can destroy it. no cap. π₯
π PARAMETERS π
IF EXISTSβ do not throw an error if the transform does not exist. instead, a notice is issued in this case. so it's like, nice about it. π₯Ίtype_nameβ the name of the data type of the transform. iykyk π§lang_nameβ the name of the language of the transform. π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, lowkey iconic πRESTRICTβ refuse to drop the transform if any objects depend on it. this is the default. she's cautious. she's careful. she's protecting you from yourself π
β οΈ okay so real talk: that CASCADE situation is not a drill. it takes out everything that depends on the transform, and then everything depending on those objects. read Section 5.14 before you go feral with it, bestie π
π EXAMPLES π
so if you wanted to drop the transform for type hstore and language plpythonu, you'd literally just do this:
DROP TRANSFORM FOR hstore LANGUAGE plpythonu;
periodt. done. slay. π
β COMPATIBILITY β
this form of DROP TRANSFORM is a PostgreSQL extension. so like, don't expect other databases to get the assignment π see CREATE TRANSFORM (CREATE_TRANSFORM(7)) for details.
π SEE ALSO π
CREATE TRANSFORM(CREATE_TRANSFORM(7))
okay that's the whole page, bestie! go forth and drop responsibly π¦
sign-off city: this was PostgreSQL 13.23, dated 2025, and the title is DROP TRANSFORM(7) β mwah, love u, bye ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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