Skip site navigation (1) Skip section navigation (2)

Re: Friendly help for psql

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Friendly help for psql
Date: 2008-01-22 06:18:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
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 have many sources of help.  I have 
> never heard of any user not being able to find help.

Maybe you need to get out in the trenches more, I've seen users confused 
at the psql prompt.

>> Having "help" do something 
>> other than throw a syntax error is a very common feature in many
>> interactive programs, for example openssl, gdb, ftp, bash, mail,
>> telnet, and vim.

> The difference with these tools is that they don't already tell you how to get 
> help when you log in.
> 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.  
> But if the login note is there, then we don't need more help options.

What about when the login note is no longer available? New person logs on, 
issues a select * from customer; then tries to remember how to view all the tables. 
Or how to quit. Their first instinct is "help" - no reason we cannot support that; 
it does no harm at all to people who don't use it. Another use case: someone has a 
'screen' session open to a psql prompt, and sends someone else in to it, or comes 
back later on. Same thing: the login note is no longer available ('screen' has a 
small scrollback), and even if you've used it before, "backslash question mark" 
is, let's be honest, very obscure, unintuitive, and hard to remember.

I'd support an alternative text rather than "slashusage" as long as something 
is put into place.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200801220101


In response to

pgsql-hackers by date

Next:From: cinuDate: 2008-01-22 11:52:08
Subject: Errors with - 8.3RC2
Previous:From: Julio Cesar Sánchez GonzálezDate: 2008-01-22 05:26:58
Subject: Re: SHA1 on postgres 8.3

pgsql-patches by date

Next:From: Alvaro HerreraDate: 2008-01-22 15:42:39
Subject: Re: Thoughts about bug #3883
Previous:From: Tom LaneDate: 2008-01-21 23:01:04
Subject: Thoughts about bug #3883

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group