Doc: Improve note about copying into postgres_fdw foreign tables in batch
Doc: Improve note about copying into postgres_fdw foreign tables in batch
Hi,
Here is a small patch to improve the note, which was added by commit
97da48246 ("Allow batch insertion during COPY into a foreign table."),
by adding an explanation about how the actual number of rows
postgres_fdw inserts at once is determined in the COPY case, including
a limitation that does not apply to the INSERT case.
I will add this to the next CF.
Best regards,
Etsuro Fujita
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
От:
Etsuro Fujita <etsuro.fujita@gmail.com>
Дата:
On Fri, Feb 17, 2023 at 5:45 PM Etsuro Fujita wrote:
> Here is a small patch to improve the note, which was added by commit
> 97da48246 ("Allow batch insertion during COPY into a foreign table."),
> by adding an explanation about how the actual number of rows
> postgres_fdw inserts at once is determined in the COPY case, including
> a limitation that does not apply to the INSERT case.
Does anyone want to comment on this?
Best regards,
Etsuro Fujita
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
От:
Tatsuo Ishii <ishii@sraoss.co.jp>
Дата:
> On Fri, Feb 17, 2023 at 5:45 PM Etsuro Fujita wrote:
>> Here is a small patch to improve the note, which was added by commit
>> 97da48246 ("Allow batch insertion during COPY into a foreign table."),
>> by adding an explanation about how the actual number of rows
>> postgres_fdw inserts at once is determined in the COPY case, including
>> a limitation that does not apply to the INSERT case.
>
> Does anyone want to comment on this?
>
> - This option also applies when copying into foreign tables.
> + This option also applies when copying into foreign tables. In that case
> + the actual number of rows postgres_fdw copies at
> + once is determined in a similar way to in the insert case, but it is
"similar way to in" should be "similar way to", maybe?
> + limited to at most 1000 due to implementation restrictions of the
> + COPY command.
>
>
>
Best reagards,
--
Tatsuo Ishii
SRA OSS LLC
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 22 Mar 2023, at 12:58, Etsuro Fujita wrote:
>
> On Fri, Feb 17, 2023 at 5:45 PM Etsuro Fujita wrote:
>> Here is a small patch to improve the note, which was added by commit
>> 97da48246 ("Allow batch insertion during COPY into a foreign table."),
>> by adding an explanation about how the actual number of rows
>> postgres_fdw inserts at once is determined in the COPY case, including
>> a limitation that does not apply to the INSERT case.
>
> Does anyone want to comment on this?
Patch looks good to me, but I agree with Tatsuo downthread that "similar way to
the insert case" reads better. Theoretically the number could be different
from 1000 if MAX_BUFFERED_TUPLES was changed in the build, but that's a
non-default not worth spending time explaining.
+ the actual number of rows postgres_fdw copies at
While not the fault of this patch I find it confusing that we mix
and for marking up "postgres_fdw", the latter seemingly more correct
(and less commonly used) than .
--
Daniel Gustafsson
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
От:
Tatsuo Ishii <ishii@sraoss.co.jp>
Дата:
> While not the fault of this patch I find it confusing that we mix > and for marking up "postgres_fdw", the latter seemingly more correct > (and less commonly used) than . I think we traditionally use for an extension module (file) name. It seems the is used when we want to refer to objects other than files. Best reagards, -- Tatsuo Ishii SRA OSS LLC English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
On Wed, Mar 22, 2023 at 9:13 PM Daniel Gustafsson wrote: > Patch looks good to me, but I agree with Tatsuo downthread that "similar way to > the insert case" reads better. Ok, I removed "in". > Theoretically the number could be different > from 1000 if MAX_BUFFERED_TUPLES was changed in the build, but that's a > non-default not worth spending time explaining. Agreed. > + the actual number of rows postgres_fdw copies at > > While not the fault of this patch I find it confusing that we mix > and for marking up "postgres_fdw", the latter seemingly more correct > (and less commonly used) than . On Wed, Mar 22, 2023 at 9:32 PM Tatsuo Ishii wrote: > I think we traditionally use for an extension module (file) > name. It seems the is used when we want to refer to objects > other than files. seems more appropriate to me as well in this context, so I left it alone. Attached is an updated version of the patch. Thanks for looking, Daniel and Ishii-san! Best regards, Etsuro Fujita
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 23 Mar 2023, at 10:51, Etsuro Fujita wrote: > seems more appropriate to me as well in this context, so I > left it alone. And just to be clear, I think you are right in leaving it alone given the context. > Attached is an updated version of the patch. LGTM. -- Daniel Gustafsson
Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
От:
Etsuro Fujita <etsuro.fujita@gmail.com>
Дата:
On Thu, Mar 23, 2023 at 6:55 PM Daniel Gustafsson wrote: > > seems more appropriate to me as well in this context, so I > > left it alone. > > And just to be clear, I think you are right in leaving it alone given the > context. > > > Attached is an updated version of the patch. > > LGTM. Cool! Pushed. Thanks again! Best regards, Etsuro Fujita