# 38. SQL 延伸功能

在接下來的部分中，我們將討論如何透過增加以下內容來延伸 PostgreSQL 中 SQL 查詢語言的功能：

* functions (從[第 38.3 節](/16/server-programming/extending-sql/user-defined-functions.md)開始)
* aggregates (從[第 38.12 節](/16/server-programming/extending-sql/user-defined-aggregates.md)開始)
* data types (從[第 38.13 節](/16/server-programming/extending-sql/user-defined-types.md)開始)
* operators (從[第 38.14 節](/16/server-programming/extending-sql/user-defined-operators.md)開始)
* operator classes for indexes (從[第 38.16 節](/16/server-programming/extending-sql/interfacing-extensions-to-indexes.md)開始)
* packages of related objects (從[第 38.17 節](/16/server-programming/extending-sql/packaging-related-objects-into-an-extension.md)開始)


---

# Agent Instructions: 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:

```
GET https://docs.postgresql.tw/16/server-programming/extending-sql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
