10
10
*
11
11
*
12
12
* 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 $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -102,7 +102,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
102
102
{
103
103
PQclear (res );
104
104
ereport (ERROR ,
105
- (errmsg ("could not receive the SYSID and timeline ID from "
105
+ (errmsg ("could not receive database system identifier and timeline ID from "
106
106
"the primary server: %s" ,
107
107
PQerrorMessage (streamConn ))));
108
108
}
@@ -114,7 +114,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
114
114
PQclear (res );
115
115
ereport (ERROR ,
116
116
(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. " ,
118
118
ntuples , nfields )));
119
119
}
120
120
primary_sysid = PQgetvalue (res , 0 , 0 );
@@ -129,8 +129,8 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
129
129
{
130
130
PQclear (res );
131
131
ereport (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. " ,
134
134
primary_sysid , standby_sysid )));
135
135
}
136
136
@@ -152,7 +152,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
152
152
res = PQexec (streamConn , cmd );
153
153
if (PQresultStatus (res ) != PGRES_COPY_OUT )
154
154
ereport (ERROR ,
155
- (errmsg ("could not start XLOG streaming: %s" ,
155
+ (errmsg ("could not start WAL streaming: %s" ,
156
156
PQerrorMessage (streamConn ))));
157
157
PQclear (res );
158
158
@@ -275,7 +275,7 @@ libpqrcv_receive(int timeout, unsigned char *type, char **buffer, int *len)
275
275
276
276
if (PQconsumeInput (streamConn ) == 0 )
277
277
ereport (ERROR ,
278
- (errmsg ("could not receive data from XLOG stream: %s" ,
278
+ (errmsg ("could not receive data from WAL stream: %s" ,
279
279
PQerrorMessage (streamConn ))));
280
280
}
281
281
justconnected = false;
@@ -297,12 +297,12 @@ libpqrcv_receive(int timeout, unsigned char *type, char **buffer, int *len)
297
297
}
298
298
PQclear (res );
299
299
ereport (ERROR ,
300
- (errmsg ("could not receive data from XLOG stream: %s" ,
300
+ (errmsg ("could not receive data from WAL stream: %s" ,
301
301
PQerrorMessage (streamConn ))));
302
302
}
303
303
if (rawlen < -1 )
304
304
ereport (ERROR ,
305
- (errmsg ("could not receive data from XLOG stream: %s" ,
305
+ (errmsg ("could not receive data from WAL stream: %s" ,
306
306
PQerrorMessage (streamConn ))));
307
307
308
308
/* Return received messages to caller */
0 commit comments