バージョンごとのドキュメント一覧

35.1. はじめに #

<title>Introduction</title>

All large objects are stored in a single system table named <link linkend="catalog-pg-largeobject"><structname>pg_largeobject</structname></link>. Each large object also has an entry in the system table <link linkend="catalog-pg-largeobject-metadata"><structname>pg_largeobject_metadata</structname></link>. Large objects can be created, modified, and deleted using a read/write API that is similar to standard operations on files. すべてのラージオブジェクトはpg_largeobjectというひとつのシステムテーブル内に格納されます。 各ラージオブジェクトはまたpg_largeobject_metadataシステムテーブルの中に項目を持ちます。 ラージオブジェクトを、ファイル標準操作に似た読み取り/書き出しAPIを使用して、作成、変更、削除することができます。

<productname>PostgreSQL</productname> also supports a storage system called <link linkend="storage-toast"><quote><acronym>TOAST</acronym></quote></link>, which automatically stores values larger than a single database page into a secondary storage area per table. This makes the large object facility partially obsolete. One remaining advantage of the large object facility is that it allows values up to 4 TB in size, whereas <acronym>TOAST</acronym>ed fields can be at most 1 GB. Also, reading and updating portions of a large object can be done efficiently, while most operations on a <acronym>TOAST</acronym>ed field will read or write the whole value as a unit. PostgreSQLではまた、単一のデータベースページよりも大きな値を自動的にテーブルごとに存在する二次格納領域に格納するTOASTという格納システムをサポートします。 これによりラージオブジェクトの一部は不要になりました。 ラージオブジェクト機能に残る利点の1つは、そのサイズが4テラバイトまで可能であるという点です。 TOASTではフィールドは1ギガバイトまでしか扱えません。 また、ラージオブジェクトの部分読み取り、部分更新は効率的に行うことができます。 一方TOAST化されたフィールドに対する操作のほとんどは、そのフィールド全体を単位として読み取り、または書き出しがなされます。