Set debug_query_string correctly in _SPI_execute_plan
In _SPI_execute_plan, debug_query_string was set directly to plan->query which is not memory context safe, it means debug_query_string have a chance to refer to a invalid address when FATAL/PANIC level error occurs.
Showing
想要评论请 注册 或 登录