Skip to content

pg_appendonly

The pg_appendonly table contains information about the storage options and other characteristics of append-optimized tables.

columntypereferencesdescription
relidoidThe table object identifier (OID) of the compressed table.
blocksizeintegerBlock size used for compression of append-optimized tables. Valid values are 8K - 2M. Default is 32K.
safefswritesizeintegerMinimum size for safe write operations to append-optimized tables in a non-mature file system. Commonly set to a multiple of the extent size of the file system; for example, Linux ext3 is 4096 bytes, so a value of 32768 is commonly used.
compresslevelsmallintThe compression level, with compression ratio increasing from 1 to 19. With zlib specified, valid values are 1-9. When zstd is specified, valid values are 1-19.
majorversionsmallintThe major version number of the pg_appendonly table.
minorversionsmallintThe minor version number of the pg_appendonly table.
checksumbooleanA checksum value that is stored to compare the state of a block of data at compression time and at scan time to ensure data integrity.
compresstypetextType of compression used to compress append-optimized tables. Valid values are:

- none (no compression)

- rle_type (run-length encoding compression)

- zlib (gzip compression)

- zstd (Zstandard compression)
columnstoreboolean1 for column-oriented storage, 0 for row-oriented storage.
segrelidoidTable on-disk segment file id.
segidxidoidIndex on-disk segment file id.
blkdirrelidoidBlock used for on-disk column-oriented table file.
blkdiridxidoidBlock used for on-disk column-oriented index file.
visimaprelidoidVisibility map for the table.
visimapidxidoidB-tree index on the visibility map.

Parent topic: System Catalogs Definitions