Fix pg_stat_activity show wrong session id after session reset bug (#5757)
* Fix pg_stat_activity show wrong session id after session reset bug Currently if a session is reset because of some error such as OOM, after call CheckForResetSession, gp_session_id will bump to a new one, but sess_id in pg_stat_activity remains unchanged and show the wrong number. This commit changes sess_id in pg_stat_activity, once a session is reset. * Refactor test using gp_execute_on_server to trigger session reset
Showing
想要评论请 注册 或 登录