mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Revert "Remove troublesome Asserts in cost_mergejoin()."
This reverts commit ff68b256a5
.
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.
This commit is contained in:
parent
dca0a54717
commit
2ae2e9c007
@ -1925,6 +1925,9 @@ cost_mergejoin(MergePath *path, PlannerInfo *root, SpecialJoinInfo *sjinfo)
|
||||
outerendsel = outer_rows / outer_path_rows;
|
||||
innerendsel = inner_rows / inner_path_rows;
|
||||
|
||||
Assert(outerstartsel <= outerendsel);
|
||||
Assert(innerstartsel <= innerendsel);
|
||||
|
||||
/* cost of source data */
|
||||
|
||||
if (outersortkeys) /* do we need to sort outer? */
|
||||
|
Loading…
Reference in New Issue
Block a user