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

Fujii Masao <fujii@postgresql.org>

Commit: 4a4241e15b246663fc44b5e5355bc6d19c6d2aa6
Author: Fujii Masao <fujii@postgresql.org>
Date: 2021-03-04T09:23:22Z
Releases: 14.0
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

Files

PathChange+/−
src/bin/psql/help.c modified +1 −4

Discussion