cost_hashjoin() has some treatment of what occurs when numbatches > 1
but that additional cost is not proportional to numbatches.
The associated comment talks about "an extra time", making it sound like
we think numbatches would only ever be 2 (or 1).
Can someone explain the current code, or is there an oversight there?
-- Simon Riggs www.2ndQuadrant.comPostgreSQL Development, 24x7 Support, Training and Services