DROP_LANGUAGE(7pg13)
๐ฆ NAME ๐ฆ
hey bestie, welcome to the DROP LANGUAGE(7) page from the PostgreSQL 13.23 Documentation ๐ DROP_LANGUAGE is literally just: remove a procedural language. Thatโs the vibe, thatโs the assignment, periodt.
๐ SYNOPSIS ๐
DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ]
โจ DESCRIPTION โจ
okay so DROP LANGUAGE removes the definition of a previously registered procedural language. To use it, you must be a superuser or the owner of the language. no cap, permissions are doing their main character thing here.
Note, bestie: As of PostgreSQL 9.1, most procedural languages have been made into โextensionsโ, and should therefore be removed withDROP EXTENSION(DROP_EXTENSION(7)) โ notDROP LANGUAGE. iykyk ๐
๐ PARAMETERS ๐
IF EXISTSโ do not throw an error if the language does not exist. A notice is issued in this case. like, โhey, it wasnโt there, but weโre fineโ ๐nameโ the name of an existing procedural language. For backward compatibility, the name can be enclosed by single quotes.CASCADEโ automatically drop objects that depend on the language (such as functions in the language), and in turn all objects that depend on those objects (see Section 5.14). itโs giving โclean it all up, bestieโ ๐งนRESTRICTโ refuse to drop the language if any objects depend on it. This is the default. lowkey protective, highkey iconic ๐ก๏ธ
๐ธ EXAMPLES ๐ธ
This command removes the procedural language plsample:
DROP LANGUAGE plsample;
slay. thatโs it. thatโs the example. ๐
โญ COMPATIBILITY โญ
There is no DROP LANGUAGE statement in the SQL standard. fr fr, itโs a PostgreSQL thing.
๐ฅ SEE ALSO ๐ฅ
ALTER LANGUAGE(ALTER_LANGUAGE(7))CREATE LANGUAGE(CREATE_LANGUAGE(7))
PostgreSQL 13.23 ยท 2025 ยท DROP LANGUAGE(7) โ byeee, bestie ๐ซถ๐
๐ฆ 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