mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 00:02:53 -04:00
Flush CopyOutResponse when starting streaming in walsender, so that it's
not delayed until the first WAL record is sent. Fujii Masao
This commit is contained in:
parent
65cd829232
commit
59292f28ca
@ -30,7 +30,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.12 2010/03/24 21:41:57 sriggs Exp $
|
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.13 2010/03/26 12:23:34 heikki Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -263,6 +263,7 @@ WalSndHandshake(void)
|
|||||||
pq_sendbyte(&buf, 0);
|
pq_sendbyte(&buf, 0);
|
||||||
pq_sendint(&buf, 0, 2);
|
pq_sendint(&buf, 0, 2);
|
||||||
pq_endmessage(&buf);
|
pq_endmessage(&buf);
|
||||||
|
pq_flush();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize position to the received one, then the
|
* Initialize position to the received one, then the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user