ALTER_LANGUAGE(7pg17)

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

πŸ’… 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 πŸ”₯


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