1010 *
1111 *
1212 * IDENTIFICATION
13- * $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.7 2010/03/19 19:19:38 sriggs Exp $
13+ * $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.8 2010/03/21 00:17:58 petere Exp $
1414 *
1515 *-------------------------------------------------------------------------
1616 */
@@ -102,7 +102,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
102102{
103103PQclear (res );
104104ereport (ERROR ,
105- (errmsg ("could not receivethe SYSID and timeline ID from "
105+ (errmsg ("could not receivedatabase system identifier and timeline ID from "
106106"the primary server: %s" ,
107107PQerrorMessage (streamConn ))));
108108}
@@ -114,7 +114,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
114114PQclear (res );
115115ereport (ERROR ,
116116(errmsg ("invalid response from primary server" ),
117- errdetail ("expected 1 tuple with 2 fields, got %d tuples with %d fields" ,
117+ errdetail ("Expected 1 tuple with 2 fields, got %d tuples with %d fields. " ,
118118ntuples ,nfields )));
119119}
120120primary_sysid = PQgetvalue (res ,0 ,0 );
@@ -129,8 +129,8 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
129129{
130130PQclear (res );
131131ereport (ERROR ,
132- (errmsg ("system differs between the primary and standby" ),
133- errdetail ("the primary SYSID is %s, standby SYSID is %s" ,
132+ (errmsg ("database system identifier differs between the primary and standby" ),
133+ errdetail ("The primary's identifier is %s,the standby's identifier is %s. " ,
134134primary_sysid ,standby_sysid )));
135135}
136136
@@ -152,7 +152,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
152152res = PQexec (streamConn ,cmd );
153153if (PQresultStatus (res )!= PGRES_COPY_OUT )
154154ereport (ERROR ,
155- (errmsg ("could not startXLOG streaming: %s" ,
155+ (errmsg ("could not startWAL streaming: %s" ,
156156PQerrorMessage (streamConn ))));
157157PQclear (res );
158158
@@ -275,7 +275,7 @@ libpqrcv_receive(int timeout, unsigned char *type, char **buffer, int *len)
275275
276276if (PQconsumeInput (streamConn )== 0 )
277277ereport (ERROR ,
278- (errmsg ("could not receive data fromXLOG stream: %s" ,
278+ (errmsg ("could not receive data fromWAL stream: %s" ,
279279PQerrorMessage (streamConn ))));
280280}
281281justconnected = false;
@@ -297,12 +297,12 @@ libpqrcv_receive(int timeout, unsigned char *type, char **buffer, int *len)
297297}
298298PQclear (res );
299299ereport (ERROR ,
300- (errmsg ("could not receive data fromXLOG stream: %s" ,
300+ (errmsg ("could not receive data fromWAL stream: %s" ,
301301PQerrorMessage (streamConn ))));
302302}
303303if (rawlen < -1 )
304304ereport (ERROR ,
305- (errmsg ("could not receive data fromXLOG stream: %s" ,
305+ (errmsg ("could not receive data fromWAL stream: %s" ,
306306PQerrorMessage (streamConn ))));
307307
308308/* Return received messages to caller */