* Check if there is a row-level trigger with transition tables that prevents * a table from becoming an inheritance child or partition. Return the name * of the first such incompatible trigger, or NULL if there is none. */
| 2148 | * of the first such incompatible trigger, or NULL if there is none. |
| 2149 | */ |
| 2150 | const char * |
| 2151 | FindTriggerIncompatibleWithInheritance(TriggerDesc *trigdesc) |
| 2152 | { |
| 2153 | if (trigdesc != NULL) |
| 2154 | { |
| 2155 | int i; |
| 2156 | |
| 2157 | for (i = 0; i < trigdesc->numtriggers; ++i) |
| 2158 | { |
| 2159 | Trigger *trigger = &trigdesc->triggers[i]; |
| 2160 | |
| 2161 | if (trigger->tgoldtable != NULL || trigger->tgnewtable != NULL) |
| 2162 | return trigger->tgname; |
| 2163 | } |
| 2164 | } |
| 2165 | |
| 2166 | return NULL; |
| 2167 | } |
| 2168 | |
| 2169 | /* |
| 2170 | * Call a trigger function. |
no outgoing calls
no test coverage detected