Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch

From: Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andrey Lepikhov <a(dot)lepikhov(at)postgrespro(dot)ru>
Subject: Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
Date: 2023-03-23 09:51:48
Message-ID: CAPmGK15wdun6JE-bOGicx9PyeNULM7rpttms--LzaGOgb1XbSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 22, 2023 at 9:13 PM Daniel Gustafsson <daniel(at)yesql(dot)se> 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 <filename>postgres_fdw</filename> copies at
>
> While not the fault of this patch I find it confusing that we mix <filename>
> and <literal> for marking up "postgres_fdw", the latter seemingly more correct
> (and less commonly used) than <filename>.

On Wed, Mar 22, 2023 at 9:32 PM Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp> wrote:
> I think we traditionally use <filename> for an extension module (file)
> name. It seems the <literal> is used when we want to refer to objects
> other than files.

<filename> 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

Attachment Content-Type Size
postgres-fdw-batch-insert-doc-v2.patch application/octet-stream 749 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-03-23 09:55:30 Re: Doc: Improve note about copying into postgres_fdw foreign tables in batch
Previous Message Alvaro Herrera 2023-03-23 09:45:51 Re: Doc: Rework contrib appendix -- informative titles, tweaked sentences