Re: pgsql: Allow insert and update tuple routing and COPY for foreign table
Amit Langote <langote_amit_f8@lab.ntt.co.jp>
From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>,
Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Robert Haas <rhaas@postgresql.org>, pgsql-committers@lists.postgresql.org,
pgsql-hackers@lists.postgresql.org
Date: 2019-04-26T04:20:31Z
Lists: pgsql-hackers
Fujita-san, On 2019/04/25 22:17, Etsuro Fujita wrote: > (2019/04/24 22:04), Laurenz Albe wrote: >> Before PostgreSQL v11, a foreign data wrapper could be certain that >> BeginForeignModify is always called before ExecForeignInsert. >> This is no longer true. > > OK, how about something like the attached? I reworded this a bit, though. Thanks for the patch. + 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. Maybe minor, but should the last part of this sentence read as: ...in which case it is called in a different way than it is in the case <command>INSERT</command> is operating directly on the foreign table. ? Thanks, Amit
Commits
-
Add FDW documentation notes about insert and update tuple routing and COPY.
- 53f48a2abb7b 11.3 landed
- 90fca7a35aa7 12.0 landed
-
Allow insert and update tuple routing and COPY for foreign tables.
- 3d956d9562aa 11.0 cited