Обсуждение: pgsql: Improve confusing variable names

Поиск
Список
Период
Сортировка

pgsql: Improve confusing variable names

От
Peter Eisentraut
Дата:
Improve confusing variable names

The prototype calls the second argument of
pgstat_progress_update_multi_param() "index", and some callers name
their local variable that way.  But when the surrounding code deals
with index relations, this is confusing, and in at least one case
shadowed another variable that is referring to an index relation.
Adjust those call sites to have clearer local variable naming, similar
to existing callers in indexcmds.c.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d71f3c83c113849fe3aa60cb2d2c12729485e97

Modified Files
--------------
src/backend/access/nbtree/nbtsort.c |  6 +++---
src/backend/catalog/index.c         | 18 +++++++++---------
2 files changed, 12 insertions(+), 12 deletions(-)