pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve confusing variable names
Date: Tue, 02 Feb 2021 08:33:13 +0000
Message-ID: <E1l6r7Z-0004yV-J1@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1l6r7Z-0004yV-J1@gemulon.postgresql.org>
Permalink:  ../E1l6r7Z-0004yV-J1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l6r7Z-0004yV-J1@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Improve confusing variable names
  In-Reply-To: <E1l6r7Z-0004yV-J1@gemulon.postgresql.org>
  References: <E1l6r7Z-0004yV-J1@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox