Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction
Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
From: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Luis Carril <luis.carril@swarm64.com>,
"pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>,
PG Bug reporting form <noreply@postgresql.org>
Date: 2018-12-19T07:44:40Z
Lists: pgsql-bugs
(2018/12/19 9:44), Amit Langote wrote: > On 2018/12/18 21:48, Etsuro Fujita wrote: >> FDWs would not look at heap_insert options, so another option would be to >> 1) leave that options as-is for foreign tables and 2) if the target is a >> foreign table, just skip heap_sync at the bottom of CopyFrom, or just >> return without doing anything in heap_sync. > > 1 might be better because it both fixes the problem > at hand and doesn't lead to misleadingly setting heap_insert options. Yeah, that's the reason why I mentioned this. Best regards, Etsuro Fujita
Commits
-
Disable WAL-skipping optimization for COPY on views
- 15f69279e0e8 10.7 landed
-
Disable WAL-skipping optimization for COPY on views and foreign tables
- ff9c22266906 11.2 landed
- bf491a9073e1 12.0 landed