|
|
|
@ -593,6 +593,14 @@ ExecForeignInsert(EState *estate, |
|
|
|
with an error message. |
|
|
|
with an error message. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
|
|
|
|
Note that this function is also called when inserting routed tuples into |
|
|
|
|
|
|
|
a foreign-table partition or executing <command>COPY FROM</command> on |
|
|
|
|
|
|
|
a foreign table, in which case it is called in a different way than it |
|
|
|
|
|
|
|
is in the <command>INSERT</command> case. See the callback functions |
|
|
|
|
|
|
|
described below that allow the FDW to support that. |
|
|
|
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
TupleTableSlot * |
|
|
|
TupleTableSlot * |
|
|
|
@ -751,6 +759,13 @@ BeginForeignInsert(ModifyTableState *mtstate, |
|
|
|
<literal>NULL</literal>, no action is taken for the initialization. |
|
|
|
<literal>NULL</literal>, no action is taken for the initialization. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
|
|
|
|
Note that if the FDW does not support routable foreign-table partitions |
|
|
|
|
|
|
|
and/or executing <command>COPY FROM</command> on foreign tables, this |
|
|
|
|
|
|
|
function or <function>ExecForeignInsert</function> subsequently called |
|
|
|
|
|
|
|
must throw error as needed. |
|
|
|
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
void |
|
|
|
void |
|
|
|
|