]> begriffs open source - ai-pg/blob - full-docs/txt/lo-intro.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / lo-intro.txt
1
2 33.1. Introduction #
3
4    All large objects are stored in a single system table named
5    pg_largeobject. Each large object also has an entry in the system table
6    pg_largeobject_metadata. Large objects can be created, modified, and
7    deleted using a read/write API that is similar to standard operations
8    on files.
9
10    PostgreSQL also supports a storage system called “TOAST”, which
11    automatically stores values larger than a single database page into a
12    secondary storage area per table. This makes the large object facility
13    partially obsolete. One remaining advantage of the large object
14    facility is that it allows values up to 4 TB in size, whereas TOASTed
15    fields can be at most 1 GB. Also, reading and updating portions of a
16    large object can be done efficiently, while most operations on a
17    TOASTed field will read or write the whole value as a unit.