Re: [PATCHES] Friendly help for psql

2008-04-04 Thread Bruce Momjian
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

Re: [PATCHES] Friendly help for psql

2008-04-04 Thread Bruce Momjian
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

Re: [PATCHES] Friendly help for psql

2008-04-02 Thread Greg Sabino Mullane
Index: mainloop.c === RCS file: /projects/cvsroot/pgsql/src/bin/psql/mainloop.c,v retrieving revision 1.87 diff -c -r1.87 mainloop.c *** mainloop.c 1 Jan 2008 19:45:56 - 1.87 --- mainloop.c 2 Apr 2008 12:51:36 - **

Re: [PATCHES] Friendly help for psql

2008-03-26 Thread Alvaro Herrera
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...) So, have you produced a followup patch? -- Alvaro Herrera

Re: [PATCHES] Friendly help for psql

2008-01-28 Thread Bruce Momjian
This has been saved for the 8.4 release: http://momjian.postgresql.org/cgi-bin/pgpatches_hold --- Greg Sabino Mullane wrote: -- Start of PGP signed section. > Why not run help when someone enters "help" (or "HELP ME

Re: [PATCHES] Friendly help for psql

2008-01-28 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > Uh, imagine: > > test=> SELECT * from pg_class > test-> help > > Technically 'help' is now an alias for 'pg_class'. Are you suggesting > supporting 'help' in this usage? People were saying they forget > semicolons, so this 'help'

Re: [PATCHES] Friendly help for psql

2008-01-21 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 >> No. While the original poster may have been making a separate comparison >> to MySQL, I can assure you that my impetus for doing this is not being >> driven by the behavior of the mysql client. > Then what is the motivation for this? We hav

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Now I have actually thought for a while whether we could get rid of the login > text altogether. I would support trading that for extended help options. That makes sense to me. I think people are accustomed to ignoring login headers because they a

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Peter Eisentraut
Greg Sabino Mullane wrote: > No. While the original poster may have been making a separate comparison > to MySQL, I can assure you that my impetus for doing this is not being > driven by the behavior of the mysql client. Then what is the motivation for this? We have many sources of help. I have

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Alvaro Herrera
Greg Sabino Mullane wrote: > Alvaro suggests: > > > To avoid the usage of unadorned "help" (which I don't think is going to > > ever cause conflicts with a SQL command but perhaps it's better to be > > prepared), one idea would be to respond with "please execute \help > > instead", and then \help

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > I'd be happy with output that explains briefly the difference between > psql and SQL commands and refers people to \? and \h. That way we don't > have to introduce too much change and this can be a forgivable special > case. (Don't like the "Help me" thing

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Simon Riggs
On Sun, 2008-01-20 at 14:08 -0500, Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> 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

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Tom Lane opined: > 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. No. Whil

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Alvaro Herrera
Tom Lane wrote: > 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. I'

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> 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 outpu

Re: [PATCHES] Friendly help for psql

2008-01-20 Thread Peter Eisentraut
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. -- Peter Eisentr

[PATCHES] Friendly help for psql

2008-01-20 Thread Greg Sabino Mullane
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...) ? NOTES ? README ? SUBMIT ? backslash_consistency.patch ? ddproblem.sql ? dfs.20071104 ? pop ? psql ? scrap ? t