While you're at it...
The following example shows psql correctly clearing its input buffer
when a line containing *only* a comment is seen, but not completely
clearing the buffer (or not realizing that it is cleared; note the
changed prompt) if the comment is at the end of a valid query.
postgres=> -- comment
postgres=> select 'hi'; -- comment
?column?
--------
hi
(1 row)
postgres->
- Thomas
--
Thomas Lockhart lockhart@alumni.caltech.edu
South Pasadena, California