Also remove some dead code.
@@ -133,7 +133,7 @@ func (b *Batch) Send(ctx context.Context, txOptions *TxOptions) error {
b.conn.pendingReadyForQueryCount++
}
n, err := b.conn.pgConn.NetConn.Write(buf)
n, err := b.conn.pgConn.Conn().Write(buf)
if err != nil {
if fatalWriteErr(n, err) {
b.conn.die(err)
The note is not visible to the blocked user.