src/backend/replication/logical/reorderbuffer.c
void
ReorderBufferSetBaseSnapshot(ReorderBuffer *rb, TransactionId xid,
							 XLogRecPtr lsn, Snapshot snap)
{
	ReorderBufferTXN *txn;
	bool		is_new;

	txn = ReorderBufferTXNByXid(rb, xid, true, &is_new, lsn, true);
	Assert(txn->base_snapshot == NULL);
	Assert(snap != NULL);

	txn->base_snapshot = snap;
	txn->base_snapshot_lsn = lsn;
}
/*
 * Setup the base snapshot of a transaction. The base snapshot is the snapshot
 * that is used to decode all changes until either this transaction modifies
 * the catalog or another catalog modifying transaction commits.
 *
 * Needs to be called before any changes are added with
 * ReorderBufferQueueChange().
 */
Setup the base snapshot of a transaction. The base snapshot is the snapshot
that is used to decode all changes until either this transaction modifies
the catalog or another catalog modifying transaction commits.

Needs to be called before any changes are added with
ReorderBufferQueueChange().
Setup the base snapshot of a transaction . The base snapshot is the snapshot that is used to decode all changes until either this transaction modifies the catalog or another catalog modifying transaction commits . Needs to be called before any changes are added with ReorderBufferQueueChange () .
void
ReorderBufferSetBaseSnapshot(ReorderBuffer *rb, TransactionId xid,
							 XLogRecPtr lsn, Snapshot snap)
{
	ReorderBufferTXN *txn;
	bool		is_new;
	txn = ReorderBufferTXNByXid(rb, xid, true, &is_new, lsn, true);
	Assert(txn->base_snapshot == NULL);
	Assert(snap != NULL);
	txn->base_snapshot = snap;
	txn->base_snapshot_lsn = lsn;
}
void ReorderBufferSetBaseSnapshot ( ReorderBuffer * rb , TransactionId xid , XLogRecPtr lsn , Snapshot snap ) { ReorderBufferTXN * txn ; bool is_new ; txn = ReorderBufferTXNByXid ( rb , xid , true , & is_new , lsn , true ) ; Assert ( txn -> base_snapshot == NULL ) ; Assert ( snap != NULL ) ; txn -> base_snapshot = snap ; txn -> base_snapshot_lsn = lsn ; }
Setup the base snapshot of a transaction.
Setup the base snapshot of a transaction .