diff --git a/sqlx-postgres/src/copy.rs b/sqlx-postgres/src/copy.rs index f5a6ea85..c6daea77 100644 --- a/sqlx-postgres/src/copy.rs +++ b/sqlx-postgres/src/copy.rs @@ -221,10 +221,6 @@ impl> PgCopyIn { } let conn: &mut PgConnection = self.conn.as_deref_mut().expect("copy_from: conn taken"); - - // flush any existing messages in the buffer and clear it - conn.stream.flush().await?; - loop { let buf = conn.stream.write_buffer_mut();