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

source

pub fn new() -> Self

Create a new PgWalDumpBuilder

source

pub fn from(settings: &dyn Settings) -> Self

Create a new PgWalDumpBuilder from Settings

source

pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self

Location of the program binary

source

pub fn backup_details(self) -> Self

output detailed information about backup blocks

source

pub fn block<S: AsRef<OsStr>>(self, block: S) -> Self

with –relation, only show records that modify block N

source

pub fn end<S: AsRef<OsStr>>(self, end: S) -> Self

stop reading at WAL location RECPTR

source

pub fn follow(self) -> Self

keep retrying after reaching end of WAL

source

pub fn fork<S: AsRef<OsStr>>(self, fork: S) -> Self

only show records that modify blocks in fork FORK

source

pub fn limit<S: AsRef<OsStr>>(self, limit: S) -> Self

number of records to display

source

pub fn path<S: AsRef<OsStr>>(self, path: S) -> Self

directory in which to find WAL segment files

source

pub fn quiet(self) -> Self

do not print any output, except for errors

source

pub fn rmgr<S: AsRef<OsStr>>(self, rmgr: S) -> Self

only show records generated by resource manager RMGR

source

pub fn relation<S: AsRef<OsStr>>(self, relation: S) -> Self

only show records that modify blocks in relation T/D/R

source

pub fn start<S: AsRef<OsStr>>(self, start: S) -> Self

start reading at WAL location RECPTR

source

pub fn timeline<S: AsRef<OsStr>>(self, timeline: S) -> Self

timeline from which to read WAL records

source

pub fn version(self) -> Self

output version information, then exit

source

pub fn fullpage(self) -> Self

only show records with a full page write

source

pub fn xid<S: AsRef<OsStr>>(self, xid: S) -> Self

only show records with transaction ID XID

source

pub fn stats<S: AsRef<OsStr>>(self, stats: S) -> Self

show statistics instead of records

source

pub fn save_fullpage<S: AsRef<OsStr>>(self, save_fullpage: S) -> Self

save full page images to DIR

source

pub fn help(self) -> Self

show help, then exit

Trait Implementations§

source§

impl Clone for PgWalDumpBuilder

source§

fn clone(&self) -> PgWalDumpBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CommandBuilder for PgWalDumpBuilder

source§

fn get_program(&self) -> &'static OsStr

Get the program name

source§

fn get_program_dir(&self) -> &Option<PathBuf>

Location of the program binary

source§

fn get_args(&self) -> Vec<OsString>

Get the arguments for the command

source§

fn get_program_file(&self) -> PathBuf

Fully qualified path to the program binary
source§

fn get_envs(&self) -> Vec<(OsString, OsString)>

Get the environment variables for the command
source§

fn build(self) -> Command
where Self: Sized,

Build a standard Command
source§

impl Debug for PgWalDumpBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PgWalDumpBuilder

source§

fn default() -> PgWalDumpBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more