Skip to main content

PlanInTxWire

Struct PlanInTxWire 

Source
pub struct PlanInTxWire {
    pub batches: i64,
    pub committed: i64,
    pub rolled_back: i64,
    pub peak_input_rows_bytes: i64,
    pub peak_output_rows_bytes: i64,
    pub peak_scratch_bytes: i64,
    pub peak_wal_bytes: i64,
}
Expand description

The CALL { … } IN TRANSACTIONS batch facts a PROFILE node reports (REL8-2047): the batch counters — run, committed, rolled back — and the per-batch maxima: the input batch’s and the installed output’s retained row bytes, the scratch the batch created, and the redo log’s reserved bytes at commit (the WAL payload it wrote). Default = the arm ran no batch (or the node is not the batched call): the producer emits the seven integers together only when one did.

Fields§

§batches: i64

Batches that started a transaction.

§committed: i64

Batches that committed.

§rolled_back: i64

Batches that rolled back under the ON ERROR policy.

§peak_input_rows_bytes: i64

The largest input batch’s retained row bytes.

§peak_output_rows_bytes: i64

The largest installed output’s retained row bytes.

§peak_scratch_bytes: i64

The most scratch bytes one batch created (redo excluded).

§peak_wal_bytes: i64

The most redo-log bytes one batch carried at its commit — the WAL payload it wrote.

Implementations§

Source§

impl PlanInTxWire

Source

pub fn ran(&self) -> bool

Whether the arm ran any batch — the group’s one presence rule (the executor twin is relate_executor::InTxBatches::ran): the wire emits the seven keys only when it holds, so their absence is the whole “no batches” fact.

Trait Implementations§

Source§

impl Clone for PlanInTxWire

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PlanInTxWire

Source§

impl Debug for PlanInTxWire

Source§

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

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

impl Default for PlanInTxWire

Source§

fn default() -> Self

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

impl PartialEq for PlanInTxWire

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PlanInTxWire

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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,

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.