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

pgsql: Attached is a patch that enhances the "\h" capability in psql.

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Attached is a patch that enhances the "\h" capability in psql.
Date: 2005-07-06 03:14:49
Message-ID: 20050706031449.8A9135297F@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Attached is a patch that enhances the "\h" capability in psql. I often
find myself typing a command and then wanting to get the syntax for it.
So I do a ctrl-a and add a \h: but psql does not recognize the command,
because I have stuff attached to it (e.g. "alter table foobar"), so I
have to scroll over and delete everything except the name of the command
itself. This patch gives \h three chances to match: if nothing matches
the complete string (current behavior), it tries to match the first two
words (e.g. "ALTER TABLE"). If that fails, it tries to match the first
word (e.g. "DELETE").
                                                                        
Greg Sabino Mullane

Modified Files:
--------------
    pgsql/src/bin/psql:
        help.c (r1.102 -> r1.103)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/help.c.diff?r1=1.102&r2=1.103)

pgsql-committers by date

Next:From: Kris JurkaDate: 2005-07-06 03:26:17
Subject: Re: pgsql: Fix contrib/pgcrypto to autoconfigure for
Previous:From: Tom LaneDate: 2005-07-05 23:18:44
Subject: pgsql: Dept of second thoughts: don't expose rijndael.tbl: rijndael.c

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