pgsql: Remove unused variable in generate-lwlocknames.pl.

2025-07-18 Thread Nathan Bossart
Remove unused variable in generate-lwlocknames.pl. Oversight in commit da952b415f. Author: Bertrand Drouvot Discussion: https://postgr.es/m/aHpOgwuFQfcFMZ/B%40ip-10-97-1-34.eu-west-3.compute.internal Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/84409ed640568d8

pgsql: Remove unused variable

2024-11-06 Thread Daniel Gustafsson
Remove unused variable The low variable has not been used since it was added in d168b666823 and can be safely removed. The variable is present in the Sedgewick paper "Analysis of Shellsort and Related Algorithms" as a parameter to the shellsort function, but our implementation does not use it. Re

pgsql: Remove unused variable in checksum_file()

2024-04-05 Thread Tomas Vondra
Remove unused variable in checksum_file() The 'offset' variable was set but otherwise unused. Per buildfarm animals with clang, e.g. sifaka and longlin. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/8e392595e5619734db707553e8f72dfacf9ab86c Modified Files ---

pgsql: Remove unused variable in statext_mcv_serialize()

2019-07-05 Thread Tomas Vondra
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

pgsql: Remove unused variable in statext_mcv_serialize()

2019-07-05 Thread Tomas Vondra
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

pgsql: Remove unused variable in non-assert-enabled build

2018-04-08 Thread Teodor Sigaev
Remove unused variable in non-assert-enabled build Use field of structure in Assert directly Jeff Janes Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/34602b0a1dfd41400d376e73e41ad868ad2d3ce8 Modified Files -- src/backend/access/common/indextuple.c |