From: Heikki Linnakangas Date: 2010年3月26日 12:23:34 +0000 (+0000) Subject: Flush CopyOutResponse when starting streaming in walsender, so that it's X-Git-Tag: REL9_0_ALPHA5~26 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=59292f28cace8c0d4b038cadbb127b440e3a7815;p=postgresql.git Flush CopyOutResponse when starting streaming in walsender, so that it's not delayed until the first WAL record is sent. Fujii Masao --- diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index f1a995dccc4..21058d10ba7 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -30,7 +30,7 @@ * * * 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_sendint(&buf, 0, 2); pq_endmessage(&buf); + pq_flush(); /* * Initialize position to the received one, then the

AltStyle によって変換されたページ (->オリジナル) /