Re: Fdw batch insert error out when set batch_size > 65535
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-05-26T06:57:24Z
Lists: pgsql-hackers
Attachments
- v4-0001-Adjust-batch_size-to-not-exceed-max-param-limit-o.patch (application/octet-stream) patch v4-0001
On Tue, May 25, 2021 at 2:47 PM Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote: > > On Tue, May 25, 2021 at 1:08 PM houzj.fnst@fujitsu.com > <houzj.fnst@fujitsu.com> wrote: > > Thanks for the comments. I have addressed all comments to the v3 patch. > > Thanks! The patch basically looks good to me except that it is missing > a commit message. I think it can be added now. With v3 patch, I observed failure in postgres_fdw test cases with insert query in prepared statements. Root cause is that in postgresGetForeignModifyBatchSize, fmstate can be null (see the existing code which handles for fmstate null cases). I fixed this, and added a commit message. PSA v4 patch. With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com
Commits
-
Remove expensive test of postgres_fdw batch inserts
- 5396b188c922 14.9 landed
- 23ce74811a1d 15.4 landed
- 6b488d5dc2fe 16.0 landed
- 087a933b21cc 17.0 landed
-
Adjust batch size in postgres_fdw to not use too many parameters
- cb92703384e2 14.0 landed
-
Implement support for bulk inserts in postgres_fdw
- b663a4136331 14.0 cited