Skip to main content
Version: 2.x

pg_appendonly

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

columntypereferencesdescription
relidoid The table object identifier (OID) of the table.
blocksizeintegerBlock size used for compression of append-optimized tables. Valid values are 8K - 2M. Default is 32K.
compresslevelsmallintThe compression level, with compression ratio increasing from 1 to 19. When quicklz1 is specified for compresstype, valid values are 1 or 3. With zlib specified, valid values are 1-9. When zstd is specified, valid values are 1-19.
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.
compresstypenameType 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)
- quicklz
columnstoreboolean1 for column-oriented storage, 0 for row-oriented storage.
segrelidoidTable on-disk segment file id.
segfilecountsmallintNumber of segment files.
versionsmallintVersion of the append-optimized table.
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.