]> granicus.if.org Git - postgresql/commit
Remove unused variable in statext_mcv_serialize()
authorTomas Vondra <tomas.vondra@postgresql.org>
Fri, 5 Jul 2019 16:06:02 +0000 (18:06 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Fri, 5 Jul 2019 16:51:56 +0000 (18:51 +0200)
commitef777cb093e8cb45dd3ae9d3f1499c765147c1dd
tree83e0594ba772cae4f484d6a1e3d9eadb0602c5e8
parent02e95a5049f7933cbde1dacf401604ea3fc02aa5
Remove unused variable in statext_mcv_serialize()

The itemlen variable used to be referenced in multiple places, but since
reworking the serialization code it's used only in one assert. Fixed by
removing the variable and calling the macro from the assert directly.

Backpatch to 12, where this code was introduced.

Reported-by: Jeff Janes
Discussion: https://postgr.es/m/CAMkU=1zc_ovH9NZd_9ovuiEWkF9yX06URUDdXCmgDydf-bqB5A@mail.gmail.com
src/backend/statistics/mcv.c