Commit 2ae2e9c0 authored by Tom Lane's avatar Tom Lane

Revert "Remove troublesome Asserts in cost_mergejoin()."

This reverts commit ff68b256.
The recent change to use -fexcess-precision=standard should make those
Asserts safe, and does fix a test case that formerly crashed for me,
so I think there's no need to have a cross-version difference in the
code here.
parent dca0a547
...@@ -1925,6 +1925,9 @@ cost_mergejoin(MergePath *path, PlannerInfo *root, SpecialJoinInfo *sjinfo) ...@@ -1925,6 +1925,9 @@ cost_mergejoin(MergePath *path, PlannerInfo *root, SpecialJoinInfo *sjinfo)
outerendsel = outer_rows / outer_path_rows; outerendsel = outer_rows / outer_path_rows;
innerendsel = inner_rows / inner_path_rows; innerendsel = inner_rows / inner_path_rows;
Assert(outerstartsel <= outerendsel);
Assert(innerstartsel <= innerendsel);
/* cost of source data */ /* cost of source data */
if (outersortkeys) /* do we need to sort outer? */ if (outersortkeys) /* do we need to sort outer? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment