Alexander Lakhin <exclusion@gmail.com> writes:
>> Alexander, this was your patch to start with ... any thoughts?
> Yes, it was my omission. Please look at the improved patch.
> It works for me in both command prompts and still gives a meaningful
> message on error.
This seems basically reasonable but I'm not in a position to test it.
Heath, can you see if this improves matters for you?
regards, tom lane