patch src/bin/psql/help.c
Per the discussion earlier re: sockets and psql
Attachments:
help.c.patchapplication/octet-stream; name=help.c.patch; x-unix-mode=0644Download+6-5
alex avriette writes:
Per the discussion earlier re: sockets and psql
It would be clearer if you list the environment variables in a separate
list below the options, not in the middle of the options without
explanation. It seems, though, that if you list them in psql, you need to
list them everywhere they apply, and that might get a little verbose.
However, the name of the environment variable is PGUSER, not $PGUSER.
--
Peter Eisentraut peter_e@gmx.net
Per the discussion earlier re: sockets and psql
It would be clearer if you list the environment variables in a separate
list below the options, not in the middle of the options without
explanation. It seems, though, that if you list them in psql, you
need to
list them everywhere they apply, and that might get a little verbose.
Yeah. I would be happy to wander through and add a quick blurb about
the environment variables to the rest of the bin/ tree. However, I
think you're right, that it is a little too verbose. I couldn't come up
with a better way to phrase it. I suppose it might be better to leave
it out. My original aim was to make sure that the --help output
included the use of a directory for -h.
Hm. Alternatively, something like mpg123's --longhelp comes to mind.
Does anyone else see a need for something like that?
However, the name of the environment variable is PGUSER, not $PGUSER.
Against my better judgment, I'll bite. 'Scuze me?
Alex
alex avriette writes:
My original aim was to make sure that the --help output included the use
of a directory for -h.
Hmm, what does that have to do with the environment variables?
To serve your end, I suppose you could go through the help outputs and
replace "database server host" by "database server host or socket
directory".
--
Peter Eisentraut peter_e@gmx.net
Hmm, what does that have to do with the environment variables?
Oh, well, after I read the man page, I realized that it explicitly
states that PGHOST is either the socket directory or host. I figured
specifying which options could be fed environment variables was useful.
It was to me.
To serve your end, I suppose you could go through the help outputs and
replace "database server host" by "database server host or socket
directory".
I think I'll do that.
Alex
Here is a patch to do the suggested renaming.
---------------------------------------------------------------------------
alex avriette wrote:
Hmm, what does that have to do with the environment variables?
Oh, well, after I read the man page, I realized that it explicitly
states that PGHOST is either the socket directory or host. I figured
specifying which options could be fed environment variables was useful.
It was to me.To serve your end, I suppose you could go through the help outputs and
replace "database server host" by "database server host or socket
directory".I think I'll do that.
Alex
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073