2
0

Adjust buffer size for CopyFrom

This commit is contained in:
Jack Christensen
2019-05-09 15:15:40 -05:00
parent 1baf0ef57e
commit d30cf1c19f
+1 -2
View File
@@ -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