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

# F.20.3. 函式與運算子

## F.20.3. 函式與運算子 [#](#isn-funcs-ops) <a href="#isn-funcs-ops" id="isn-funcs-ops"></a>

`isn` 模組提供標準比較運算子，以及所有這些資料型別的 B-tree 與雜湊索引支援。此外，還有數個專用函式，列於[表 F.11](#isn-functions)。在此表中，`isn` 表示模組的任何一種資料型別。

### 表 F.11. `isn` 函式 [#](#isn-functions) <a href="#isn-functions" id="isn-functions"></a>

| <p>函式</p><p>說明</p>                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><code>make\_valid</code> ( <code>isn</code> ) → <code>isn</code></p><p>清除值的無效檢查碼旗標。</p>                                                             |
| <p><code>is\_valid</code> ( <code>isn</code> ) → <code>boolean</code></p><p>檢查是否存在無效檢查碼旗標。</p>                                                         |
| <p><code>isn\_weak</code> ( <code>boolean</code> ) → <code>boolean</code></p><p>設定弱輸入模式，並傳回新設定。此函式是為了向後相容而保留。建議透過 <code>isn.weak</code> 組態參數設定弱模式。</p> |
| <p><code>isn\_weak</code> () → <code>boolean</code></p><p>傳回弱模式目前的狀態。此函式是為了向後相容而保留。建議透過 <code>isn.weak</code> 組態參數檢查弱模式。</p>                           |

<br>

[返回 F.20. isn — 國際標準號碼的資料型別（ISBN、EAN、UPC 等）](https://docs.postgresql.tw/19/appendixes/contrib/isn.md#isn)

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/isn.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 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/appendixes/contrib/isn/isn-funcs-ops.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.
