Re: Friendly help for psql

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Greg Sabino Mullane <greg(at)turnstep(dot)com>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Friendly help for psql
Date: 2008-04-04 18:00:54
Message-ID: 200804041800.m34I0ss16317@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

bruce wrote:
> Greg Sabino Mullane wrote:
> -- Start of PGP signed section.
> > 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...)
> >
>
> I have applied this patch (attached) with a few modifications. First
> you were printing \? help for any string beginning with "help" so
> "helplkjasdf" also printed help --- I don't think we want that. I
> allowed "help", "help "*, and "help;", so "help select" does work
> (prints \?).
>
> I also added \? to the list of \? help options because now someone can
> get to \? without typing \?.
>
> Shame we can't make \h more prominent in \? output. I am going to try
> to trim down that top help section, but that will a separate patch
> posting by me.

Ah, I see now we later agreed to have 'help' just output a suggestion to
use \?. I have expanded on that and removed the mention of the web
site, which seemed odd to be just in the 'help' output. (I added a \h
mention.)

Update patch applied, that also reverses the previous patch.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachment Content-Type Size
/rtmp/diff text/x-diff 2.1 KB

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2008-04-04 19:08:46 Re: Expose checkpoint start/finish times into SQL.
Previous Message Bruce Momjian 2008-04-04 17:49:14 Re: Friendly help for psql