]> granicus.if.org Git - postgresql/commit
Attached is a patch that enhances the "\h" capability in psql. I often
authorBruce Momjian <bruce@momjian.us>
Wed, 6 Jul 2005 03:14:48 +0000 (03:14 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 6 Jul 2005 03:14:48 +0000 (03:14 +0000)
commitc3a69c3b3bf2a4c338a6c6293203e577d2000dd6
treee1b3248adc778af2f34c9f381de507c851a9c22e
parent84d630eb24afb6887f9dff1362e1485d3db00017
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
src/bin/psql/help.c