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.com PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers