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

ztao1987 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hawq.git


The following commit(s) were added to refs/heads/master by this push:
     new ff8e11c0b HAWQ-1844. only init orca on QD side
ff8e11c0b is described below

commit ff8e11c0be210e7dac204fb45fda318eefe5e932
Author: ztao1987 <zhenglin.ta...@gmail.com>
AuthorDate: Thu Aug 4 22:45:48 2022 +0800

    HAWQ-1844. only init orca on QD side
---
 src/backend/utils/init/postinit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/utils/init/postinit.c 
b/src/backend/utils/init/postinit.c
index 5358c5fe2..4a68d1f32 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -478,7 +478,8 @@ InitPostgres(const char *in_dbname, Oid dboid, const char 
*username,
 
 #ifdef USE_ORCA
        /* Initialize GPOPT */
-       InitGPOPT();
+       if (!bootstrap && Gp_role == GP_ROLE_DISPATCH)
+         InitGPOPT();
 #endif
 
        /*

Reply via email to