pgsql: Improve confusing variable names

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Improve confusing variable names
Дата
Msg-id E1l6r7Z-0004yV-J1@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove unused column atttypmod from initial tablesync query
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix ancient memory leak in contrib/auto_explain.