On Wed, 16 Feb 2000, Tom Lane wrote:
> No, I think Chris was complaining about the behavior with an
> incomplete query in the buffer. I can't show it with current
> sources since psql is exiting on ^C, but 6.5 works like this:
>
> play=> foobar
> play-> ^C
> CANCEL request sent
> <-- return typed here to get a prompt
Actually, I have an idea why that is, too. The signal handler should tell
readline that input is done. At the time you press return there, it's
still reading input.
> play-> select 2+2;
> ERROR: parser: parse error at or near "foobar"
> play=>
--
Peter Eisentraut Sernanders vaeg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden