pgsql: Remove unused variable in statext_mcv_serialize()

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unused variable in statext_mcv_serialize()
Date: 2019-07-05 16:52:42
Message-ID: E1hjRRy-0008OZ-1q@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a5dc37866add6552834ec5af6a0053f521fbcc62

Modified Files
--------------
src/backend/statistics/mcv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-07-05 18:17:52 pgsql: Remove dead encoding-conversion functions.
Previous Message Tomas Vondra 2019-07-05 16:52:14 pgsql: Remove unused variable in statext_mcv_serialize()