ALTER_LANGUAGE(7pg13)

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

✨ NAME ✨

okay so bestie, welcome to the ALTER LANGUAGE page from the PostgreSQL 13.23 Documentation β€” yes, that’s the manual name, it’s literally right there in the group chat 🫢 This one is all about changing the definition of a procedural language. slay.

🌸 SYNOPSIS 🌸

ALTER [ PROCEDURAL ] LANGUAGE name RENAME TO new_name
ALTER [ PROCEDURAL ] LANGUAGE name OWNER TO { new_owner | CURRENT_USER | SESSION_USER }

πŸ’– DESCRIPTION πŸ’–

ALTER LANGUAGE changes the definition of a procedural language. like, it is not doing a million things: the only functionality is to rename the language or assign a new owner. that’s it, that’s the main character energy πŸ’…

permission check, no cap: you must be superuser or owner of the language to use ALTER LANGUAGE.

πŸŽ€ 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. so if you’re looking for it in the standard, bestie, it’s not there 😭

πŸ¦‹ SEE ALSO πŸ¦‹


sign-off era: this page is from PostgreSQL 13.23, dated 2025. mwah πŸ’œ

πŸ“¦ where this page comes from