Re: POC: postgres_fdw insert batching
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: "tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>
Cc: 'Tomas Vondra' <tomas.vondra@2ndquadrant.com>,
"Andrey V. Lepikhov" <a.lepikhov@postgrespro.ru>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2021-01-12T02:06:29Z
Lists: pgsql-hackers
Attachments
- 0001-Add-bulk-insert-for-foreign-tables-v6.patch (text/x-patch)
Hi, Attached is a v6 of this patch, rebased to current master and with some minor improvements (mostly comments and renaming the "end" struct field to "values_end" which I think is more descriptive). The one thing that keeps bugging me is convert_prep_stmt_params - it dies the right thing, but the code is somewhat confusing. AFAICS the discussions about making this use COPY and/or libpq pipelining (neither of which is committed yet) ended with the conclusion that those changes are somewhat independent, and that it's worth getting this committed in the current form. Barring objections, I'll push this within the next couple days. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Fix tuple routing to initialize batching only for inserts
- 927f453a9410 14.0 landed
-
Fix pointer type in ExecForeignBatchInsert SGML docs
- c15283ff429b 14.0 landed
-
Fix initialization of FDW batching in ExecInitModifyTable
- 920f853dc948 14.0 landed
-
Implement support for bulk inserts in postgres_fdw
- b663a4136331 14.0 landed