[Postgres-xl-developers] what does the XCP mean?

Rui Hai Jiang ruihaijiang at msn.com
Tue Jul 14 00:52:50 PDT 2015


Hello, 

I’m looking at the following code. 


I don’t know what  #ifndef XCP means here.


Is the function pgxc_planner used for a Coordinator or a datanode?



PlannedStmt *
planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
{
 PlannedStmt *result;


 if (planner_hook)
  result = (*planner_hook) (parse, cursorOptions, boundParams);
 else
#ifdef PGXC
#ifndef XCP
  /*
   * A Coordinator receiving a query from another Coordinator
   * is not allowed to go into PGXC planner.
   */
  if (IS_PGXC_COORDINATOR && !IsConnFromCoord())
   result = pgxc_planner(parse, cursorOptions, boundParams);
  else
#endif /* XCP */
#endif /* PGXC */
   result = standard_planner(parse, cursorOptions, boundParams);
 return result;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.postgres-xl.org/private.cgi/postgres-xl-developers-postgres-xl.org/attachments/20150714/fdf61b35/attachment.htm>


More information about the Postgres-xl-developers mailing list