Re: Friendly help for psql - Mailing list pgsql-patches

From Tom Lane
Subject Re: Friendly help for psql
Date
Msg-id 10906.1200856122@sss.pgh.pa.us
Whole thread Raw
In response to Re: Friendly help for psql  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Friendly help for psql
Re: Friendly help for psql
List pgsql-patches
Peter Eisentraut <peter_e@gmx.net> writes:
> Greg Sabino Mullane wrote:
>> Why not run help when someone enters "help" (or "HELP ME!") on the
>> command line? \? is hardly an easy thing to remember (and some people
>> can't be bothered to actually read the screen...)

> Then surely the help output won't be of use to them either.

The actual argument for doing this is nothing more nor less than
"mysql does it like that".  99% of the people who will tell you this
is user-friendly think so because they used mysql before coming to
postgres.

That might be sufficient reason to do it; I'm not sure.  Personally
I find it a really bad idea for psql to be usurping syntax that
doesn't start with a backslash, but I don't suppose I'm representative
of people who haven't absorbed the difference between psql and SQL.

Note that the mysql help facility covers both the mysql program and SQL
commands (ie both \? and \h in our terminology) so the proposed patch
is going to be seen as pretty lacking anyway by mysql-trained users.

It's interesting to note that "help", "\h", and "\?" all provoke the
same response(s) in mysql.  Perhaps a patch that had had more than two
seconds' design effort in it would do the same in psql; though I'm not
sure what to do to disambiguate the case with no arguments.

            regards, tom lane

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Friendly help for psql
Next
From: Alvaro Herrera
Date:
Subject: Re: Friendly help for psql