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

# 33.1. 簡介

### 33.1. 簡介 [#](#lo-intro) <a href="#lo-intro" id="lo-intro"></a>

所有大型物件都儲存在名為 [`pg_largeobject`](https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-largeobject.md) 的單一系統資料表中。每個大型物件在系統資料表 [`pg_largeobject_metadata`](https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-largeobject-metadata.md) 中也有一筆項目。你可以透過類似標準檔案操作的讀寫 API，建立、修改及刪除大型物件。

PostgreSQL 也支援稱為 [「TOAST」](https://docs.postgresql.tw/19/internals/storage/storage-toast.md) 的儲存系統，會自動將大於單一資料庫頁面的值，存入各資料表的次要儲存區。這使大型物件功能的部分用途已被取代。大型物件仍有一項優勢：它允許最大 4 TB 的值，而使用 TOAST 的欄位最多只能有 1 GB。此外，大型物件的局部讀取與更新可以有效率地執行，而 TOAST 欄位的大多數操作會將整個值視為一個單位來讀寫。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/lo-intro.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/client-interfaces/largeobjects/lo-intro.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.
