Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>, Luis Carril <luis.carril@swarm64.com>, "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>, PG Bug reporting form <noreply@postgresql.org>, Michael Paquier <michael.paquier@gmail.com>
Date: 2018-12-20T00:31:40Z
Lists: pgsql-bugs
Attachments
- no_heap_opt_fdw_copy-v5.patch (text/x-diff) patch v5
On Wed, Dec 19, 2018 at 06:12:12PM +0900, Etsuro Fujita wrote: > I think so too. I think it might be better to add regression tests for the > view case as well, though. Agreed. >> Would you like to >> update the patch yourself? > > I'd be happy if you worked on that. Attached is the patch with two new test cases blowing with wal_level = minimal. On HEAD, I suggest that we use RELKIND_CAN_HAVE_STORAGE to not fall again in this trap in the future. For back-branches, let's just add the appropriate relkind checks as suggested upthread. Please note that the attached patch is for HEAD, and I'll adjust for other branches. The view part needs to go down to v10, and the part for foreign tables down to v11. Thoughts? -- Michael
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