Struct postgresql_commands::pg_waldump::PgWalDumpBuilder
source · pub struct PgWalDumpBuilder { /* private fields */ }
Expand description
pg_waldump decodes and displays PostgreSQL write-ahead logs for debugging.
Implementations§
source§impl PgWalDumpBuilder
impl PgWalDumpBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgWalDumpBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgWalDumpBuilder 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 backup_details(self) -> Self
pub fn backup_details(self) -> Self
output detailed information about backup blocks
sourcepub fn block<S: AsRef<OsStr>>(self, block: S) -> Self
pub fn block<S: AsRef<OsStr>>(self, block: S) -> Self
with –relation, only show records that modify block N
sourcepub fn fork<S: AsRef<OsStr>>(self, fork: S) -> Self
pub fn fork<S: AsRef<OsStr>>(self, fork: S) -> Self
only show records that modify blocks in fork FORK
sourcepub fn path<S: AsRef<OsStr>>(self, path: S) -> Self
pub fn path<S: AsRef<OsStr>>(self, path: S) -> Self
directory in which to find WAL segment files
sourcepub fn rmgr<S: AsRef<OsStr>>(self, rmgr: S) -> Self
pub fn rmgr<S: AsRef<OsStr>>(self, rmgr: S) -> Self
only show records generated by resource manager RMGR
sourcepub fn relation<S: AsRef<OsStr>>(self, relation: S) -> Self
pub fn relation<S: AsRef<OsStr>>(self, relation: S) -> Self
only show records that modify blocks in relation T/D/R
sourcepub fn timeline<S: AsRef<OsStr>>(self, timeline: S) -> Self
pub fn timeline<S: AsRef<OsStr>>(self, timeline: S) -> Self
timeline from which to read WAL records
sourcepub fn save_fullpage<S: AsRef<OsStr>>(self, save_fullpage: S) -> Self
pub fn save_fullpage<S: AsRef<OsStr>>(self, save_fullpage: S) -> Self
save full page images to DIR
Trait Implementations§
source§impl Clone for PgWalDumpBuilder
impl Clone for PgWalDumpBuilder
source§fn clone(&self) -> PgWalDumpBuilder
fn clone(&self) -> PgWalDumpBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandBuilder for PgWalDumpBuilder
impl CommandBuilder for PgWalDumpBuilder
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 get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
source§impl Debug for PgWalDumpBuilder
impl Debug for PgWalDumpBuilder
source§impl Default for PgWalDumpBuilder
impl Default for PgWalDumpBuilder
source§fn default() -> PgWalDumpBuilder
fn default() -> PgWalDumpBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgWalDumpBuilder
impl RefUnwindSafe for PgWalDumpBuilder
impl Send for PgWalDumpBuilder
impl Sync for PgWalDumpBuilder
impl Unpin for PgWalDumpBuilder
impl UnwindSafe for PgWalDumpBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more