>> I'm just starting to look around the postgres source code. Anyway, I saw
>> a few lines about syntax warnings in psql that were ifdefed out because
>> they were too annoying. This patch puts it back in, but only gives the
>> error once per session.
That strikes me as only very slightly less annoying than the original.
The message was removed for a reason, and I don't particularly want to
see it put back (in any form).
regards, tom lane