aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-11-05 13:48:11 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-11-05 13:48:11 -0400
commit34ca0905706422c191b3b0afef6e1c5f54399833 (patch)
tree8f59a4a161001ffba009864365219377e7cddd5c /src/backend/utils/adt/jsonb_util.c
parent86d19d27ce6d588ebb0afa84f9121515fa11686d (diff)
downloadpostgresql-34ca0905706422c191b3b0afef6e1c5f54399833.tar.gz
postgresql-34ca0905706422c191b3b0afef6e1c5f54399833.zip
Adjust cost_merge_append() to reflect use of binaryheap_replace_first().
Commit 7a2fe9bd0 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>
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions