[PATCH] psql : Improve code for help option

From: miyake_kouta <miyake_kouta(at)oss(dot)nttdata(dot)com>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] psql : Improve code for help option
Date: 2021-03-02 02:57:37
Message-ID: 2a3c612babdd6ed63a9d877bb575d793@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

I found some redundant code in psql/help.c, so I propose a patch to fix
it.
In the current help.c, the variable "user" is set to the value of
$PGUSER (or get_user_name).
However, $PGUSER is referenced again in the code that follows.
We can replace this part with "user", I think.

Regards.
--
Kota Miyake

Attachment Content-Type Size
psql_help.patch text/x-diff 698 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2021-03-02 03:00:41 Re: New IndexAM API controlling index vacuum strategies
Previous Message miyake_kouta 2021-03-02 02:52:33 Re: [PATCH] pgbench: Bug fix for the -d option