From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org, Greg Sabino Mullane <greg(at)turnstep(dot)com> |
Subject: | Re: Friendly help for psql |
Date: | 2008-01-20 19:08:42 |
Message-ID: | 10906.1200856122@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Peter Eisentraut <peter_e(at)gmx(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2008-01-20 19:31:41 | Re: Transaction Snapshot Cloning |
Previous Message | Joe Conway | 2008-01-20 18:47:12 | Re: [GENERAL] SHA1 on postgres 8.3 |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2008-01-20 19:41:41 | Re: Friendly help for psql |
Previous Message | Peter Eisentraut | 2008-01-20 18:34:20 | Re: Friendly help for psql |