> 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/19/internals/catalogs/catalog-pg-transform.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 52.57. pg\_transform \#

### 52.57. `pg_transform` [#](#catalog-pg-transform) <a href="#catalog-pg-transform" id="catalog-pg-transform"></a>

目錄 `pg_transform` 儲存關於轉換（transform）的資訊；轉換是一種讓資料型別適應程序語言的機制。詳細資訊請參閱 [CREATE TRANSFORM](https://docs.postgresql.tw/19/reference/sql-commands/sql-createtransform.md)。

#### 表 52.57. `pg_transform` 欄位 [#](#catalog-pg-transform-columns) <a href="#catalog-pg-transform-columns" id="catalog-pg-transform-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                                                                      |
| <p><code>trftype</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-type.md"><code>pg\_type</code></a>.<code>oid</code>）</p><p>此轉換所適用之資料型別的 OID</p>                                          |
| <p><code>trflang</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-language.md"><code>pg\_language</code></a>.<code>oid</code>）</p><p>此轉換所適用之語言的 OID</p>                                    |
| <p><code>trffromsql</code> <code>regproc</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-proc.md"><code>pg\_proc</code></a>.<code>oid</code>）</p><p>將資料型別轉換為程序語言的輸入（例如函式參數）時所使用函式的 OID。 若應使用預設行為，則儲存零。</p> |
| <p><code>trftosql</code> <code>regproc</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-proc.md"><code>pg\_proc</code></a>.<code>oid</code>）</p><p>將程序語言的輸出（例如回傳值）轉換為資料型別時所使用函式的 OID。 若應使用預設行為，則儲存零。</p>    |

<br>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-transform.html)（原文版本：18.6；核對日期：2026-10-17）


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
