ALTER LANGUAGE

|      ALTER LANGUAGE       |                       |            |                  |                                  |
|:-------------------------:|-----------------------|------------|------------------|----------------------------------|
|[Prev](sql-alterindex.html)|[Up](sql-commands.html)|SQL Commands|[Home](index.html)| [Next](sql-alterlargeobject.html)|

---

[]()

## ALTER LANGUAGE

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](sql-createlanguage.html), [DROP LANGUAGE](sql-droplanguage.html)

---

|[Prev](sql-alterindex.html)|[Up](sql-commands.html)| [Next](sql-alterlargeobject.html)|
|:--------------------------|:---------------------:|---------------------------------:|
|        ALTER INDEX        |  [Home](index.html)   |        ALTER LARGE OBJECT        |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>