Struct postgres_replication_types::types::UpdateMessage
source · pub struct UpdateMessage<'a> {
pub transaction_id: Option<i32>,
pub oid: i32,
pub key: Option<TupleData<'a>>,
pub old: Option<TupleData<'a>>,
pub new: TupleData<'a>,
}
Fields§
§transaction_id: Option<i32>
Xid of the transaction (only present for streamed transactions).
NOTE: This field is available since protocol version 2.
oid: i32
OID of the relation corresponding to the ID in the relation message.
key: Option<TupleData<'a>>
This field is optional and is only present if the update changed data in any of the column(s) that are part of the REPLICA IDENTITY index.
old: Option<TupleData<'a>>
This field is optional and is only present if table in which the update happened has REPLICA IDENTITY set to FULL.
new: TupleData<'a>
TupleData message part representing the contents of a new tuple.