---
name: "ALTER_LANGUAGE"
section: "7"
platform: "linux"
package: "postgresql"
version: "18.6-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ALTER_LANGUAGE"
---

# ALTER\_LANGUAGE(7)

change the definition of a procedural language

## 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

**ALTER LANGUAGE** changes the definition of a procedural language. The only functionality is to rename the language or assign a new owner. 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.

## SEE ALSO

CREATE LANGUAGE ([**CREATE\_LANGUAGE**(7)](/CREATE_LANGUAGE/7.md)), DROP LANGUAGE ([**DROP\_LANGUAGE**(7)](/DROP_LANGUAGE/7.md))
