File tree 1 file changed +15
-0
lines changed 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,14 @@ ExecForeignInsert(EState *estate,
593
593
with an error message.
594
594
</para>
595
595
596
+ <para>
597
+ Note that this function is also called when inserting routed tuples into
598
+ a foreign-table partition or executing <command>COPY FROM</command> on
599
+ a foreign table, in which case it is called in a different way than it
600
+ is in the <command>INSERT</command> case. See the callback functions
601
+ described below that allow the FDW to support that.
602
+ </para>
603
+
596
604
<para>
597
605
<programlisting>
598
606
TupleTableSlot *
@@ -751,6 +759,13 @@ BeginForeignInsert(ModifyTableState *mtstate,
751
759
<literal>NULL</literal>, no action is taken for the initialization.
752
760
</para>
753
761
762
+ <para>
763
+ Note that if the FDW does not support routable foreign-table partitions
764
+ and/or executing <command>COPY FROM</command> on foreign tables, this
765
+ function or <function>ExecForeignInsert</function> subsequently called
766
+ must throw error as needed.
767
+ </para>
768
+
754
769
<para>
755
770
<programlisting>
756
771
void
You can’t perform that action at this time.
0 commit comments