On Sat, Jul 11, 2020 at 11:53 PM Tom Lane <[email protected]> wrote: > > vignesh C <[email protected]> writes: > > On Tue, Jun 30, 2020 at 2:41 PM Bharath Rupireddy > > <[email protected]> wrote: > >> I've added this patch to commitfest - > >> https://commitfest.postgresql.org/28/. > > > I felt this patch is ready for committer, changing the status to ready > > for committer. > > Pushed with some fiddling. Mainly, if we're going to the trouble of > checking for binary mode here, we might as well skip allocating the > line_buf too. >
Hi Tom, Isn't it good if we backpatch this to versions 13, 12, 11 and so on? As we can save good amount of memory with this patch for non-binary copy. Attaching the patch which applies on versions 13, 12, 11. With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com
v1-0001-Avoid-useless-buffer-allocations-during-binary-CO.patch
Description: Binary data
