pg_verify_checksums
-
verify data checksums in an offline PostgreSQL database cluster
+
verify data checksums in a PostgreSQL database cluster
pg_verify_checksums
+
+
+
+ datadir
+
Description
pg_verify_checksums verifies data checksums in a
+
PostgreSQL cluster. The server must be shut
+ down cleanly before running
pg_verify_checksums.
+ The exit status is zero if there are no checksum errors, otherwise nonzero.
The following command-line options are available:
-
-
+
- Only validate checksums in the relation with specified relfilenode.
+ Enable debug output. Lists all checked blocks and their checksum.
-
+
- Enable debug output. Lists all checked blocks and their checksum.
+ Only validate checksums in the relation with specified relfilenode.
- Print the
pg_verify_checksums version and exit.
+
Print the
pg_verify_checksums version and exit.
- Specifies the directory where the database cluster is
+ Specifies the directory where the database cluster is
stored; can be overridden using the option.
-
-
-
Notes
- The cluster must be shut down cleanly before running
-
-
-
static void
usage()
{
- printf(_("%s verifies page level checksums in offline PostgreSQL database cluster.\n\n"), progname);
+ printf(_("%s verifies data checksums in a PostgreSQL database cluster.\n\n"), progname);
printf(_("Usage:\n"));
- printf(_(" %s [OPTION] [DATADIR]\n"), progname);
+ printf(_(" %s [OPTION]... [DATADIR]\n"), progname);
printf(_("\nOptions:\n"));
printf(_(" [-D, --pgdata=]DATADIR data directory\n"));
- printf(_(" -r relfilenode check only relation with specified relfilenode\n"));
- printf(_(" -d debug output, listing all checked blocks\n"));
+ printf(_(" -d debug output, list all checked blocks\n"));
+ printf(_(" -r RELFILENODE check only relation with specified relfilenode\n"));
printf(_(" -V, --version output version information, then exit\n"));
printf(_(" -?, --help show this help, then exit\n"));
printf(_("\nIf no data directory (DATADIR) is specified, "