Re: pgsql: Allow insert and update tuple routing and COPY for foreign table

From: Etsuro Fujita <fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Robert Haas <rhaas(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Allow insert and update tuple routing and COPY for foreign table
Date: 2019-04-26 09:25:38
Message-ID: 5CC2CE92.2040100@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

(2019/04/26 13:58), Etsuro Fujita wrote:
> (2019/04/26 13:20), Amit Langote wrote:
>> + 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.
>>
>> ?
>
> Yeah, but I think it would be OK to just say "the INSERT case" because
> this note is added to the docs for ExecForeignInsert(), which allows the
> FDW to directly insert into foreign tables as you know, so users will
> read "the INSERT case" as "the case <command>INSERT</command> is
> operating directly on the foreign table".

Pushed as-is. I think we can change that later if necessary.

Best regards,
Etsuro Fujita

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-04-26 09:52:17 pgsql: doc: Update section on NFS
Previous Message Etsuro Fujita 2019-04-26 09:23:10 pgsql: Add FDW documentation notes about insert and update tuple routin

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2019-04-26 09:59:06 Re: New vacuum option to do only freezing
Previous Message Kyotaro HORIGUCHI 2019-04-26 08:40:34 Re: Remove page-read callback from XLogReaderState.