mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Add explicit buffering in backend libpq, to compensate for
buffering lost by not going through stdio anymore for client I/O.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.67 1999/01/17 06:18:15 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.68 1999/01/23 22:27:26 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -303,9 +303,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
|
||||
}
|
||||
else if (!from && !binary)
|
||||
{
|
||||
CopySendData("\\.\n",3,fp);
|
||||
if (IsUnderPostmaster)
|
||||
pq_flush();
|
||||
CopySendData("\\.\n",3,fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user