pgsql: Remove unused variable in statext_mcv_serialize()

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема pgsql: Remove unused variable in statext_mcv_serialize()
Дата
Msg-id E1hjRRW-0008Nu-5v@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
master

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

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Add \warn command to psql.
Следующее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Remove unused variable in statext_mcv_serialize()