提交 a29aecf7 编写于 作者: H Heikki Linnakangas

Fix assertion failure in single-user mode.

In single-user mode, MyQueueId isn't set. But there was an assertion for
that in ResourceQueueGetQueryMemoryLimit. To fix, don't apply memory limits
in single-user mode.
上级 61b82012
...@@ -1035,6 +1035,10 @@ ResourceManagerGetQueryMemoryLimit(PlannedStmt* stmt) ...@@ -1035,6 +1035,10 @@ ResourceManagerGetQueryMemoryLimit(PlannedStmt* stmt)
if (Gp_role != GP_ROLE_DISPATCH) if (Gp_role != GP_ROLE_DISPATCH)
return 0; return 0;
/* no limits in single user mode. */
if (!IsUnderPostmaster)
return 0;
Assert(gp_session_id > -1); Assert(gp_session_id > -1);
Assert(ActivePortal != NULL); Assert(ActivePortal != NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册