src/backend/replication/logical/reorderbuffer.c
static void
ReorderBufferCheckSerializeTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
{
	/*
	 * TODO: improve accounting so we cheaply can take subtransactions into
	 * account here.
	 */
	if (txn->nentries_mem >= max_changes_in_memory)
	{
		ReorderBufferSerializeTXN(rb, txn);
		Assert(txn->nentries_mem == 0);
	}
}
/*
 * Check whether the transaction tx should spill its data to disk.
 */
Check whether the transaction tx should spill its data to disk.
Check whether the transaction tx should spill its data to disk .
static void
ReorderBufferCheckSerializeTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
{
	if (txn->nentries_mem >= max_changes_in_memory)
	{
		ReorderBufferSerializeTXN(rb, txn);
		Assert(txn->nentries_mem == 0);
	}
}
static void ReorderBufferCheckSerializeTXN ( ReorderBuffer * rb , ReorderBufferTXN * txn ) { if ( txn -> nentries_mem >= max_changes_in_memory ) { ReorderBufferSerializeTXN ( rb , txn ) ; Assert ( txn -> nentries_mem == 0 ) ; } }
Check whether the transaction tx should spill its data to disk.
Check whether the transaction tx should spill its data to disk .
/*
	 * TODO: improve accounting so we cheaply can take subtransactions into
	 * account here.
	 */