ALTER_LANGUAGE(7pg17)
π ALTER LANGUAGE(7) π
okay bestie, welcome to the PostgreSQL 17.11 Documentation page for ALTER LANGUAGE(7) π this one is short and sweet, and it is literally all about changing a procedural languageβs definition. no cap.
β¨ NAME β¨
ALTER_LANGUAGE β change the definition of a procedural language π
πΈ SYNOPSIS πΈ
ALTER [ PROCEDURAL ] LANGUAGE name RENAME TO new_name
ALTER [ PROCEDURAL ] LANGUAGE name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
π DESCRIPTION π
okay so ALTER LANGUAGE changes the definition of a procedural language. the only functionality is to rename the language or assign a new owner. thatβs it, thatβs the whole vibe β¨
you must be superuser or owner of the language to use ALTER LANGUAGE β like, fr fr, no exceptions mentioned here π
π PARAMETERS π
nameβ name of a language π¦new_nameβ the new name of the language πnew_ownerβ the new owner of the language π
π¦ COMPATIBILITY π¦
there is no ALTER LANGUAGE statement in the SQL standard. not a thing. periodt. π
π₯ SEE ALSO π₯
CREATE LANGUAGE(CREATE_LANGUAGE(7)) πDROP LANGUAGE(DROP_LANGUAGE(7)) β
xoxo, bestie π«Ά this was the PostgreSQL 17.11 version, dated 2026 β stay iconic and keep those languages renamed and re-owned ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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