I added the following test to psql/help.c:

                /* if we have an exact match, exit, fixes \h SELECT */
                if (strcasecmp(topic, QL_HELP[i].cmd) == 0)
                    break;

This will exit the help loop if an exact match has already been found. 
This prevents \h select from showing SELECT INTO help.  Peter, hope you
are OK with this.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Fri, 26 May 2000 11:42:22 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Fixed psql \h SELECT