May 2019
Intermediate to advanced
600 pages
20h 46m
English
First, check whether data checksums are enabled:
postgres=# SHOW data_checksums ; data_checksums---------------- on(1 row)
If not, then we must regrettably stop here. We mentioned previously that this feature needs to be enabled before you need it; you shouldn't be surprised because the same is true for most business continuity capabilities, such as high availability or disaster recovery.
If data checksums are enabled, and you are taking a backup with pg_basebackup, then checksums are verified while pages are read from data files. Let's look at an example:
$ pg_basebackup -D backup2
If nothing goes wrong, then the backup finishes with no output—we know already that pg_basebackup operates by default in no news good news mode. ...
Read now
Unlock full access