Commit 34ca090
committed
Adjust cost_merge_append() to reflect use of binaryheap_replace_first().
Commit 7a2fe9b improved merge append so that replacement of a tuple
takes log(N) operations, not twice log(N). Since cost_merge_append knew
about that explicitly, we should adjust it. This probably makes little
difference in practice, but the obsolete comment is confusing.
Ideally this would have been put in in 9.3 with the underlying behavior
change; but I'm not going to back-patch it, since there's some small chance
of changing a plan choice that somebody's optimized for.
Thomas Munro
Discussion: <CAEepm=0WQBSvuYcMOUj4Ga4NXpu2J=ejZcE=e=eiTjTX-6_gDw@mail.gmail.com>1 parent 86d19d2 commit 34ca090
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1577 | 1577 | | |
1578 | 1578 | | |
1579 | 1579 | | |
1580 | | - | |
1581 | | - | |
| 1580 | + | |
1582 | 1581 | | |
1583 | 1582 | | |
1584 | 1583 | | |
| |||
1619 | 1618 | | |
1620 | 1619 | | |
1621 | 1620 | | |
1622 | | - | |
| 1621 | + | |
1623 | 1622 | | |
1624 | 1623 | | |
1625 | 1624 | | |
| |||
0 commit comments