Andres Freund <andres@anarazel.de> writes:
> On 2016-06-30 12:40:19 -0400, Tom Lane wrote:
>> Whether or not the toplevel transaction is empty, by the time we get here
>> it would have nentries == nentries_mem, no?
> Not, if the top-level transaction spilled to disk.
But doesn't the code stanza just above this loop pull that spillage back in?
It's certainly doing *something* to txn->nentries_mem.
regards, tom lane