DROP_TRANSFORM(7pg14)

πŸ“¦ version 14.24, in opensuse-leap 16.0

hey bestie πŸ’– welcome to the DROP TRANSFORM(7) page, fresh from the PostgreSQL 14.24 Documentation ✨ today’s main character is DROP_TRANSFORM, and she is here to remove a transform. no cap, periodt. πŸ’…

✨ NAME ✨

DROP_TRANSFORM β€” remove a transform. that’s the name, that’s the assignment, and honestly? iconic. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]

🌸 DESCRIPTION 🌸

DROP_TRANSFORM removes a previously defined transform. lowkey straightforward, highkey powerful. ✨

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 yeah, same keys to the castle, bestie. πŸ”‘

πŸŽ€ PARAMETERS πŸŽ€

  • IF EXISTS β€” do not throw an error if the transform does not exist. a notice is issued in this case. so chill, it’s not gonna yell at you. πŸ™ˆ
  • type_name β€” the name of the data type of the transform. 🧚
  • 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 β€œclean up the whole group chat.” πŸ’€
  • RESTRICT β€” refuse to drop the transform if any objects depend on it. this is the default. protective queen behavior, fr fr. πŸ‘‘

πŸ”₯ EXAMPLES πŸ”₯

say you wanna drop the transform for type hstore and language plpythonu β€” here’s the move, bestie:

DROP TRANSFORM FOR hstore LANGUAGE plpythonu;

⭐ COMPATIBILITY ⭐

This form of DROP TRANSFORM is a PostgreSQL extension. See CREATE TRANSFORM (CREATE_TRANSFORM(7)) for details. iykyk. 🫢

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’‹ based on the PostgreSQL 14.24 docs, dated 2026, and it’s the DROP TRANSFORM(7) page. byeee, go be iconic with your transforms πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from