M — a logical-decoding message emitted by pg_logical_emit_message. A TRANSACTIONAL message
(flags = 1) arrives bracketed by Begin/Commit (or inside a streamed txn's S/E/c) and rides
%Transaction.messages; a NON-TRANSACTIONAL message (flags = 0) arrives standalone and
delivers via Replicant.Sink.handle_message/2. xid is set only for a streamed message.
ordinal is set by the assembler for a transactional message (spec §7.1).
Summary
Types
@type t() :: %Replicant.Decoder.Messages.Message{ content: binary() | nil, lsn: Replicant.lsn() | nil, ordinal: non_neg_integer() | nil, prefix: String.t() | nil, transactional?: boolean() | nil, xid: non_neg_integer() | nil }