* postgresEndForeignModify * Finish an insert/update/delete operation on a foreign table */
| 2114 | * Finish an insert/update/delete operation on a foreign table |
| 2115 | */ |
| 2116 | static void |
| 2117 | postgresEndForeignModify(EState *estate, |
| 2118 | ResultRelInfo *resultRelInfo) |
| 2119 | { |
| 2120 | PgFdwModifyState *fmstate = (PgFdwModifyState *) resultRelInfo->ri_FdwState; |
| 2121 | |
| 2122 | /* If fmstate is NULL, we are in EXPLAIN; nothing to do */ |
| 2123 | if (fmstate == NULL) |
| 2124 | return; |
| 2125 | |
| 2126 | /* Destroy the execution state */ |
| 2127 | finish_foreign_modify(fmstate); |
| 2128 | } |
| 2129 | |
| 2130 | /* |
| 2131 | * postgresBeginForeignInsert |
nothing calls this directly
no test coverage detected