only init orca on QD side
@@ -478,6 +478,7 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username,
#ifdef USE_ORCA
/* Initialize GPOPT */
+ if (!bootstrap && Gp_role == GP_ROLE_DISPATCH)
InitGPOPT();
#endif
