From d30cf1c19f3a13beb275eb8a517d7f54d5e185bf Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Thu, 9 May 2019 15:15:40 -0500 Subject: [PATCH] Adjust buffer size for CopyFrom --- pgconn.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pgconn.go b/pgconn.go index aad5fafd..bbabb0dd 100644 --- a/pgconn.go +++ b/pgconn.go @@ -879,8 +879,7 @@ func (pgConn *PgConn) CopyFrom(ctx context.Context, r io.Reader, sql string) (Co } // Send copy data - buf = make([]byte, 0, 20000) - // buf = make([]byte, 0, 65536) + buf = make([]byte, 0, 65536) buf = append(buf, 'd') sp := len(buf) var readErr error