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
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.