pgsql: Remove redundant getenv() for PGUSER, in psql help.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove redundant getenv() for PGUSER, in psql help.
Date: 2021-03-04 09:24:40
Message-ID: E1lHkDo-0006c3-RQ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove redundant getenv() for PGUSER, in psql help.

Previously psql obtained the value of PGUSER twice to display
a default user in its help message.

Author: Kota Miyake
Reviewed-by: Nitin Jadhav, Fujii Masao
Discussion: https://postgr.es/m/2a3c612babdd6ed63a9d877bb575d793@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4a4241e15b246663fc44b5e5355bc6d19c6d2aa6

Modified Files
--------------
src/bin/psql/help.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-03-04 10:10:42 pgsql: pg_upgrade: Fix oversight in version checking
Previous Message Heikki Linnakangas 2021-03-04 08:59:16 pgsql: Avoid extra newline in errors received in FE protocol version 2.