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

# H.1. 用戶端介面

### H.1. 用戶端介面 [#](#external-interfaces) <a href="#external-interfaces" id="external-interfaces"></a>

PostgreSQL 基本發行版只包含兩種用戶端介面：

* [libpq](https://docs.postgresql.tw/19/client-interfaces/libpq.md) 是主要的 C 語言介面，而且許多其他用戶端介面都以它為基礎，因此納入發行版。
* [ECPG](https://docs.postgresql.tw/19/client-interfaces/ecpg.md) 依賴伺服器端的 SQL 語法，因此容易受到 PostgreSQL 本身變更的影響，所以也納入發行版。

所有其他語言介面都是外部專案，並各自發行。PostgreSQL wiki 維護了一份[語言介面清單](https://wiki.postgresql.org/wiki/List_of_drivers)。請注意，其中部分套件採用的授權條款與 PostgreSQL 不同。各語言介面的更多資訊（包括授權條款），請參閱其網站與文件。

<https://wiki.postgresql.org/wiki/List_of_drivers>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/external-interfaces.html)（原文版本：18.6；核對日期：2026-09-07）


---

# 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/external-projects/external-interfaces.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.
