RE: [POC] Fast COPY FROM command for the table with foreign partitions
tsunakawa.takay@fujitsu.com <tsunakawa.takay@fujitsu.com>
From: "tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>
To: "Andrey V. Lepikhov" <a.lepikhov@postgrespro.ru>
Cc: "tanghy.fnst@cn.fujitsu.com" <tanghy.fnst@cn.fujitsu.com>, Alexey
Kondratov <a.kondratov@postgrespro.ru>, Michael Paquier <michael@paquier.xyz>, Ashutosh Bapat <ashutosh.bapat@2ndquadrant.com>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, Etsuro Fujita <etsuro.fujita@gmail.com>, PostgreSQL-Dev <pgsql-hackers@postgresql.org>, Tomas Vondra <tomas.vondra@enterprisedb.com>, "houzj.fnst@cn.fujitsu.com" <houzj.fnst@cn.fujitsu.com>, Amit Langote <amitlangote09@gmail.com>
Date: 2021-02-02T06:57:04Z
Lists: pgsql-hackers
Hello, Andrey-san, From: Tang, Haiying <tanghy.fnst@cn.fujitsu.com> > > Sometimes before i suggested additional optimization [1] which can > > additionally speed up COPY by 2-4 times. Maybe you can perform the > > benchmark for this solution too? ... > But the patch no longer applies, I tried to apply on e42b3c3bd6(2021/1/26) but > failed. > > Can you send a rebased version? I think the basic part of this patch set is the following. The latter file unfortunately no longer applies to HEAD. v13-0001-Move-multi-insert-decision-logic-into-executor.patch v13_3-0002-Fast-COPY-FROM-into-the-foreign-or-sharded-table.patch Plus, as Tang-san said, I'm afraid the following files are older and doesn't apply. v9-0003-Add-separated-connections-into-the-postgres_fdw.patch v9-0004-Optimized-version-of-the-Fast-COPY-FROM-feature When do you think you can submit the rebased version of them? (IIUC at the off-list HighGo meeting, you're planning to post them late this week after the global snapshot patch.) Just in case you are not going to do them for the moment, can we rebase and/or further modify them so that they can be committed in PG 14? Regards Takayuki Tsunakawa
Commits
-
Allow batch insertion during COPY into a foreign table.
- 97da48246d34 16.0 landed
-
postgres_fdw: Disable batch insertion when there are WCO constraints.
- 82593b9a3d5f 16.0 cited
-
Enforce foreign key correctly during cross-partition updates
- ba9a7e392171 15.0 cited
-
Fix permission checks on constraint violation errors on partitions.
- 6214e2b22804 14.0 cited
-
Fix compilation of uuid-ossp
- 525e60b74299 14.0 cited