MCPcopy Create free account
hub / github.com/apache/cloudberry / interpret_exec_location

Function interpret_exec_location

src/backend/commands/functioncmds.c:763–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763static char
764interpret_exec_location(DefElem *defel)
765{
766 char *str = strVal(defel->arg);
767 char exec_location;
768
769 if (strcmp(str, "any") == 0)
770 exec_location = PROEXECLOCATION_ANY;
771 else if (strcmp(str, "coordinator") == 0)
772 exec_location = PROEXECLOCATION_COORDINATOR;
773 else if (strcmp(str, "initplan") == 0)
774 exec_location = PROEXECLOCATION_INITPLAN;
775 else if (strcmp(str, "all_segments") == 0)
776 exec_location = PROEXECLOCATION_ALL_SEGMENTS;
777 else
778 elog(ERROR, "invalid data access \"%s\"", str);
779
780 return exec_location;
781}
782
783
784static void

Callers 2

AlterFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected