• Bruce Momjian's avatar
    Attached is a patch that enhances the "\h" capability in psql. I often · c3a69c3b
    Bruce Momjian authored
    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
    c3a69c3b
help.c 14.4 KB