Avoid panic with DEBUG5 enabled
elog(DEBUG5) inside PostgresMain() after sigsetjmp() seems bad idea. This is the place where control jumps in-case error happens in normal flow. Shouldn't be performing elog() without handling that error first. write_stderr() exists to write the exact thing being intended with this elog(). Having elog(DEBUG5) is causing SIGSEGV. Simple repro for the same is: SET log_min_messages=debug5; SELECT xmlconcat('bad', '<syntax'); This fixes #8733 github issue.
Showing
想要评论请 注册 或 登录