LinuxCommandLibrary

pg_amcheck

checks PostgreSQL database corruption using Access Method verification

TLDR

Check all databases

$ pg_amcheck --all
copy
Check specific database
$ pg_amcheck -d [database]
copy
Check with verbose output
$ pg_amcheck -v -d [database]
copy

SYNOPSIS

pg_amcheck [options] [dbname]

DESCRIPTION

pg_amcheck checks PostgreSQL database corruption using Access Method verification. Detects physical corruption in tables and indexes. Run for database integrity verification.

PARAMETERS

-a, --all

Check all databases.
-d, --database name
Database to check.
-t, --table table
Check specific table.
-i, --index index
Check specific index.
-v, --verbose
Verbose output.
--heapallindexed
Check heap for indexed values.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community