| 761 | } |
| 762 | |
| 763 | static char |
| 764 | interpret_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 | |
| 784 | static void |
no outgoing calls
no test coverage detected