1
0
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:
Tom Lane
1999-01-23 22:27:29 +00:00
parent 13c7c183f7
commit e6725d1574
5 changed files with 193 additions and 98 deletions

View File

@ -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);
}
}
}