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

# 52.34. pg\_operator \#

### 52.34. `pg_operator` [#](#catalog-pg-operator) <a href="#catalog-pg-operator" id="catalog-pg-operator"></a>

目錄 `pg_operator` 儲存運算子的相關資訊。 更多資訊請參閱 [CREATE OPERATOR](https://docs.postgresql.tw/19/reference/sql-commands/sql-createoperator.md) 與[第 36.14 節](https://docs.postgresql.tw/19/server-programming/extend/xoper.md)。

#### 表 52.34. `pg_operator` 欄位 [#](#catalog-pg-operator-columns) <a href="#catalog-pg-operator-columns" id="catalog-pg-operator-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                                                |
| <p><code>oprname</code> <code>name</code></p><p>運算子名稱</p>                                                                                                                                                            |
| <p><code>oprnamespace</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-namespace.md"><code>pg\_namespace</code></a>.<code>oid</code>）</p><p>包含此運算子之命名空間的 OID</p>     |
| <p><code>oprowner</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-authid.md"><code>pg\_authid</code></a>.<code>oid</code>）</p><p>此運算子的擁有者</p>                       |
| <p><code>oprkind</code> <code>char</code></p><p><code>b</code> = 中置運算子（“both”）， 或 <code>l</code> = 前置運算子（“left”）</p>                                                                                                 |
| <p><code>oprcanmerge</code> <code>bool</code></p><p>此運算子支援合併連接</p>                                                                                                                                                   |
| <p><code>oprcanhash</code> <code>bool</code></p><p>此運算子支援雜湊連接</p>                                                                                                                                                    |
| <p><code>oprleft</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>左運算元的型別（前置運算子為零）</p>                    |
| <p><code>oprright</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>右運算元的型別</p>                            |
| <p><code>oprresult</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>結果的型別 （尚未定義的 “shell” 運算子為零）</p>       |
| <p><code>oprcom</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-operator.md"><code>pg\_operator</code></a>.<code>oid</code>）</p><p>此運算子的交換子（若無則為零）</p>              |
| <p><code>oprnegate</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-operator.md"><code>pg\_operator</code></a>.<code>oid</code>）</p><p>此運算子的否定子（若無則為零）</p>           |
| <p><code>oprcode</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>實作此運算子的函式 （尚未定義的 “shell” 運算子為零）</p> |
| <p><code>oprrest</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>此運算子的限制選擇性估算函式 （若無則為零）</p>          |
| <p><code>oprjoin</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>此運算子的連接選擇性估算函式 （若無則為零）</p>          |

<br>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-operator.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-operator.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.
