Clean up temp toast schema on backend exit.
When a backend exits normally, the "pg_temp_<sessionid>" schema is dropped. In GPDB 5, with the 8.3 merge, there is now a "pg_temp_toast_<sessionid>" schema in addition to the temp schema, but it was not dropped. As a result, you would end up with a lot of unused pg_temp_toast_* schemas. To fix, also drop the temp toast schema at backend exit. We will still leak temp schemas, and temp toast schemas, if a backend exits abnormally, or if the server crashes. That's not a new issue, but we should probably do something about that in the future, too. Fixes github issue #4061. Backport to 5x_STABLE, where the toast temp namespaces were introduced.
Showing
想要评论请 注册 或 登录