We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d94c5 commit 4a4241eCopy full SHA for 4a4241e
src/bin/psql/help.c
@@ -134,10 +134,7 @@ usage(unsigned short int pager)
134
fprintf(output, _(" -p, --port=PORT database server port (default: \"%s\")\n"),
135
env ? env : DEF_PGPORT_STR);
136
/* Display default user */
137
- env = getenv("PGUSER");
138
- if (!env)
139
- env = user;
140
- fprintf(output, _(" -U, --username=USERNAME database user name (default: \"%s\")\n"), env);
+ fprintf(output, _(" -U, --username=USERNAME database user name (default: \"%s\")\n"), user);
141
fprintf(output, _(" -w, --no-password never prompt for password\n"));
142
fprintf(output, _(" -W, --password force password prompt (should happen automatically)\n"));
143
0 commit comments