pg_appendonly

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

Table 1. pg_catalog.pg_appendonly

columntypereferencesdescription
relidoid The table object identifier (OID) of the compressed table.
compresslevelsmallint The compression level, with increasing compression ratio. If the gzip or zlib compression type is specified, valid values are 1-9.
majorversionsmallint The major version number of the pg_appendonly table.
minorversionsmallint The minor version number of the pg_appendonly table.
checksumboolean A 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.
compresstypetext Type of compression used on append-only and parquet tables. zlib, snappy, and gzip compression types are supported.
columnstoreboolean 0 for row-oriented storage.
segrelidoid Table on-disk segment file id.
segidxidoid Index on-disk segment file id.
blkdirrelidoid Block used for on-disk column-oriented table file.
blkdiridxidoid Block used for on-disk column-oriented index file.
versioninteger Version of MemTuples and block layout for this table.
pagesizeinteger The max page size of this relation. Only valid for Parquet tables; otherwise, the value is 0.
splitsizeinteger Size of a split. Default value is 64M, which is controlled by server configuration parameter appendonly_split_write_size_mb.