You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by zt...@apache.org on 2022/08/04 14:46:08 UTC

[hawq] branch master updated: HAWQ-1844. only init orca on QD side

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 <zh...@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
 
 	/*