pgsql: Fix wrong costing of Sort under Gather Merge.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix wrong costing of Sort under Gather Merge.
Date: 2017-03-22 18:47:09
Message-ID: E1cqlHp-0000dh-3t@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix wrong costing of Sort under Gather Merge.

There's no mechanism for such a sort to become a top-N sort, so we
should pass -1 rather than limit_tuples to cost_sort().

Rushabh Lathia, per a report from Mithun Cy

Discussion: http://postgr.es/m/CAGPqQf1akRcSgC9=6iwx=sEPap9UvPpHJLzg8_N+OuHdb6fL+g@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dc02c7bca4dccf7de278cdc6b3325a829e75b252

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-03-22 19:59:08 pgsql: doc: Markup and formatting improvements
Previous Message Robert Haas 2017-03-22 17:44:12 Re: Re: [COMMITTERS] pgsql: Fix and simplify check for whether we're running as Windows serv