Re: [PATCHES] Friendly help for psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Greg Sabino Mullane <greg(at)turnstep(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [PATCHES] Friendly help for psql
Date: 2008-01-28 20:20:59
Message-ID: 6444.1201551659@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Alvaro Herrera wrote:
>> 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 would emit the verbose output. Perhaps
>> eventually we could adorn it with "\help category", etc.

> Uh, imagine:

> test=> SELECT * from pg_class
> test-> help

You didn't read the patch: it would recognize "help" only when the input
buffer is empty. The only thing it's assuming is that no SQL command
will ever *begin* with the word "help".

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-01-28 20:29:20 Re: Strange locking choices in pg_shdepend.c
Previous Message Greg Sabino Mullane 2008-01-28 20:15:54 Re: [GENERAL] SHA1 on postgres 8.3

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2008-01-28 20:40:20 Re: Friendly help for psql
Previous Message David Fetter 2008-01-28 20:08:00 Re: Auto-explain patch