> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/internals/catalogs/catalog-pg-language.md).

# 52.29. pg\_language \#

The catalog `pg_language` registers languages in which you can write functions or stored procedures. See [CREATE LANGUAGE](/reference/sql-commands/sql-createlanguage.md) and [Chapter 40](/server-programming/xplang.md) for more information about language handlers.

**Table 52.29. `pg_language` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                                                                                                                                                                                                                         |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>Row identifier</p>                                                                                                                                                                                                                                                                                                                |
| <p><code>lanname</code> <code>name</code></p><p>Name of the language</p>                                                                                                                                                                                                                                                                                                     |
| <p><code>lanowner</code> <code>oid</code> (references <a href="/pages/nyEMOe5gQKgypFQTDbjS"><code>pg\_authid</code></a>.<code>oid</code>)</p><p>Owner of the language</p>                                                                                                                                                                                                    |
| <p><code>lanispl</code> <code>bool</code></p><p>This is false for internal languages (such as SQL) and true for user-defined languages. Currently, pg\_dump still uses this to determine which languages need to be dumped, but this might be replaced by a different mechanism in the future.</p>                                                                           |
| <p><code>lanpltrusted</code> <code>bool</code></p><p>True if this is a trusted language, which means that it is believed not to grant access to anything outside the normal SQL execution environment. Only superusers can create functions in untrusted languages.</p>                                                                                                      |
| <p><code>lanplcallfoid</code> <code>oid</code> (references <a href="/pages/8TiLY9QeJalZY0OBAANF"><code>pg\_proc</code></a>.<code>oid</code>)</p><p>For noninternal languages this references the language handler, which is a special function that is responsible for executing all functions that are written in the particular language. Zero for internal languages.</p> |
| <p><code>laninline</code> <code>oid</code> (references <a href="/pages/8TiLY9QeJalZY0OBAANF"><code>pg\_proc</code></a>.<code>oid</code>)</p><p>This references a function that is responsible for executing “inline” anonymous code blocks (<a href="/pages/-LKQMQXAhJ9BFtDA7v35">DO</a> blocks). Zero if inline blocks are not supported.</p>                               |
| <p><code>lanvalidator</code> <code>oid</code> (references <a href="/pages/8TiLY9QeJalZY0OBAANF"><code>pg\_proc</code></a>.<code>oid</code>)</p><p>This references a language validator function that is responsible for checking the syntax and validity of new functions when they are created. Zero if no validator is provided.</p>                                       |
| <p><code>lanacl</code> <code>aclitem\[]</code></p><p>Access privileges; see <a href="/pages/VX212noXJkZ6WiwCHQE7">Section 5.8</a> for details</p>                                                                                                                                                                                                                            |

<br>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-language.html)（英文原文，待翻譯）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.postgresql.tw/internals/catalogs/catalog-pg-language.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
