Sergey Belyashov <sergey(dot)belyashov(at)gmail(dot)com> writes:
> Do I need to apply this patch for debugging purposes?
I think we've debugged enough to understand what's happening.
Thanks for the report!
If you just want to get some work done, applying that patch
should be enough to prevent the crash, although I want to
change some other things too.
regards, tom lane