pub struct PgAmCheckBuilder { /* private fields */ }
Expand description
pg_amcheck
checks objects in a PostgreSQL
database for corruption.
Implementations§
Source§impl PgAmCheckBuilder
impl PgAmCheckBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgAmCheckBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgAmCheckBuilder
from Settings
Sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
Sourcepub fn exclude_database<S: AsRef<OsStr>>(self, exclude_database: S) -> Self
pub fn exclude_database<S: AsRef<OsStr>>(self, exclude_database: S) -> Self
do NOT check matching database(s)
Sourcepub fn exclude_index<S: AsRef<OsStr>>(self, exclude_index: S) -> Self
pub fn exclude_index<S: AsRef<OsStr>>(self, exclude_index: S) -> Self
do NOT check matching index(es)
Sourcepub fn exclude_relation<S: AsRef<OsStr>>(self, exclude_relation: S) -> Self
pub fn exclude_relation<S: AsRef<OsStr>>(self, exclude_relation: S) -> Self
do NOT check matching relation(s)
Sourcepub fn exclude_schema<S: AsRef<OsStr>>(self, exclude_schema: S) -> Self
pub fn exclude_schema<S: AsRef<OsStr>>(self, exclude_schema: S) -> Self
do NOT check matching schema(s)
Sourcepub fn exclude_table<S: AsRef<OsStr>>(self, exclude_table: S) -> Self
pub fn exclude_table<S: AsRef<OsStr>>(self, exclude_table: S) -> Self
do NOT check matching table(s)
Sourcepub fn no_dependent_indexes(self) -> Self
pub fn no_dependent_indexes(self) -> Self
do NOT expand list of relations to include indexes
Sourcepub fn no_dependent_toast(self) -> Self
pub fn no_dependent_toast(self) -> Self
do NOT expand list of relations to include TOAST tables
Sourcepub fn no_strict_names(self) -> Self
pub fn no_strict_names(self) -> Self
do NOT require patterns to match objects
Sourcepub fn exclude_toast_pointers(self) -> Self
pub fn exclude_toast_pointers(self) -> Self
do NOT follow relation TOAST pointers
Sourcepub fn on_error_stop(self) -> Self
pub fn on_error_stop(self) -> Self
stop checking at end of first corrupt page
Sourcepub fn skip<S: AsRef<OsStr>>(self, skip: S) -> Self
pub fn skip<S: AsRef<OsStr>>(self, skip: S) -> Self
do NOT check “all-frozen” or “all-visible” blocks
Sourcepub fn start_block<S: AsRef<OsStr>>(self, start_block: S) -> Self
pub fn start_block<S: AsRef<OsStr>>(self, start_block: S) -> Self
begin checking table(s) at the given block number
Sourcepub fn end_block<S: AsRef<OsStr>>(self, end_block: S) -> Self
pub fn end_block<S: AsRef<OsStr>>(self, end_block: S) -> Self
check table(s) only up to the given block number
Sourcepub fn heap_all_indexed(self) -> Self
pub fn heap_all_indexed(self) -> Self
check that all heap tuples are found within indexes
Sourcepub fn parent_check(self) -> Self
pub fn parent_check(self) -> Self
check index parent/child relationships
Sourcepub fn root_descend(self) -> Self
pub fn root_descend(self) -> Self
search from root page to refind tuples
Sourcepub fn no_password(self) -> Self
pub fn no_password(self) -> Self
never prompt for password
Sourcepub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
pub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
user password
Sourcepub fn maintenance_db<S: AsRef<OsStr>>(self, maintenance_db: S) -> Self
pub fn maintenance_db<S: AsRef<OsStr>>(self, maintenance_db: S) -> Self
alternate maintenance database
Sourcepub fn jobs<S: AsRef<OsStr>>(self, jobs: S) -> Self
pub fn jobs<S: AsRef<OsStr>>(self, jobs: S) -> Self
use this many concurrent connections to the server
Sourcepub fn install_missing(self) -> Self
pub fn install_missing(self) -> Self
install missing extensions
Trait Implementations§
Source§impl Clone for PgAmCheckBuilder
impl Clone for PgAmCheckBuilder
Source§fn clone(&self) -> PgAmCheckBuilder
fn clone(&self) -> PgAmCheckBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CommandBuilder for PgAmCheckBuilder
impl CommandBuilder for PgAmCheckBuilder
Source§fn get_program(&self) -> &'static OsStr
fn get_program(&self) -> &'static OsStr
Get the program name
Source§fn get_program_dir(&self) -> &Option<PathBuf>
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
Source§fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
Set an environment variable for the command