This is an automated email from the ASF dual-hosted git repository.

avamingli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 39e1d9efefccb2f825d54cb8bfe229441f2f6ddb
Author: wenru yan <[email protected]>
AuthorDate: Fri Apr 28 01:49:34 2023 +0000

    set bypass query's memory limit to statement_mem
---
 src/backend/utils/resgroup/resgroup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/utils/resgroup/resgroup.c 
b/src/backend/utils/resgroup/resgroup.c
index a3621cb380..c90b848b8d 100644
--- a/src/backend/utils/resgroup/resgroup.c
+++ b/src/backend/utils/resgroup/resgroup.c
@@ -3610,8 +3610,9 @@ ResourceGroupGetQueryMemoryLimit(void)
 
        Assert(Gp_role == GP_ROLE_DISPATCH || Gp_role == GP_ROLE_UTILITY);
 
+       /* for bypass query,use statement_mem as the query mem. */
        if (bypassedGroup)
-               return 0;
+               return stateMem;
 
        if (gp_resgroup_memory_query_fixed_mem > 0)
                return (uint64) gp_resgroup_memory_query_fixed_mem * 1024L;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to