From: | Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Luis Carril <luis(dot)carril(at)swarm64(dot)com>, Etsuro Fujita <fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, PG Bug reporting form <noreply(at)postgresql(dot)org>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Subject: | Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction |
Date: | 2018-12-19 04:01:01 |
Message-ID: | 9c0508a1-da8e-b122-a3c7-61b2cbe4e10c@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 2018/12/19 12:51, Michael Paquier wrote:
> On Wed, Dec 19, 2018 at 11:52:09AM +0900, Amit Langote wrote:
>> Hmm, note that we don't pass CopyState->freeze option to the FDW drivers
>> today, though we may in the future when we add an *actual* COPY interface
>> to FDWs. Wouldn't it be a good idea to prevent specifying the FREEZE
>> option for foreign tables as COPY targets until then? Of course, that's
>> something for -hackers to consider.
>
> No idea if that will happen.
It may happen sooner that you may think. :)
Currently, COPY into foreign tables uses APIs used by INSERT, so one row
at a time interface. It'd certainly be better to allow FDWs to be able to
do bulk transfer. I think Fujita-san has said he wants to work on that:
https://www.postgresql.org/message-id/5AB4F190.1000804%40lab.ntt.co.jp
> One argument for doing nothing yet is that
> this command does not fail now so changing it may cause compatibility
> problems.
Just FYI, COPYing into foreign tables is only supported as of PG 11.
Thanks,
Amit
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2018-12-19 04:04:14 | Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction |
Previous Message | Michael Paquier | 2018-12-19 03:51:57 | Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction |