Data Sanity Functions
- 3">
+ 1">
- Name Return Type Description
+ |
+ Function
+
+ Description
+
|
-
-
pg_relation_check_pages(relation regclass [, fork text DEFAULT NULL ])
-
- setof record
- Check the pages of a relation.
-
+
+
pg_relation_check_pages
+
+
pg_relation_check_pages (
relation regclass [,
fork text ] )
+ setof record
+
failed_block_num bigint )
+
+ Checks the pages of the specified relation to see if they are valid
+ enough to safely be loaded into the server's shared buffers. If
+ given,
fork specifies that only the pages of
+ the given fork are to be verified.
fork can
+ be main for the main data
+ fork, fsm for the free space
+ map, vm for the visibility map,
+ or init for the initialization fork. The
+ default of NULL means that all forks of the
+ relation should be checked. The function returns a list of block
+ numbers that appear corrupted along with the path names of their
+ files. Use of this function is restricted to superusers by
+ default, but access may be granted to others
+ using GRANT.
+
-
-
pg_relation_check_pages
-
- pg_relation_check_pages iterates over all blocks of a
- given relation and verifies if they are in a state where they can safely
- be loaded into the shared buffers. If defined,
- fork specifies that only the pages of the given
- fork are to be verified. Fork can be 'main' for the
- main data fork, 'fsm' for the free space map,
- 'vm' for the visibility map, or
- 'init' for the initialization fork. The default of
- NULL means that all the forks of the relation are
- checked. The function returns a list of blocks that are considered as
- corrupted with the path of the related file. Use of this function is
- restricted to superusers by default but access may be granted to others
- using GRANT.
-
-