diff options
| author | Peter Eisentraut | 2010-03-21 00:17:59 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2010-03-21 00:17:59 +0000 |
| commit | c248d171209fb1468a68d4d623fe721497cab7ba (patch) | |
| tree | 0a45505cb3515a72c788aaf97d73458d18db665a /src/backend/replication | |
| parent | 1dff2a0f25badf7fc15a654172bf4e0bce964008 (diff) | |
Message tuning
Diffstat (limited to 'src/backend/replication')
| -rw-r--r-- | src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 18 | ||||
| -rw-r--r-- | src/backend/replication/walreceiver.c | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c index 7c74ec80523..9e318e669d0 100644 --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.7 2010/03/19 19:19:38 sriggs Exp $ + * $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.8 2010/03/21 00:17:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -102,7 +102,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint) { PQclear(res); ereport(ERROR, - (errmsg("could not receive the SYSID and timeline ID from " + (errmsg("could not receive database system identifier and timeline ID from " "the primary server: %s", PQerrorMessage(streamConn)))); } @@ -114,7 +114,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint) PQclear(res); ereport(ERROR, (errmsg("invalid response from primary server"), - errdetail("expected 1 tuple with 2 fields, got %d tuples with %d fields", + errdetail("Expected 1 tuple with 2 fields, got %d tuples with %d fields.", ntuples, nfields))); } primary_sysid = PQgetvalue(res, 0, 0); @@ -129,8 +129,8 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint) { PQclear(res); ereport(ERROR, - (errmsg("system differs between the primary and standby"), - errdetail("the primary SYSID is %s, standby SYSID is %s", + (errmsg("database system identifier differs between the primary and standby"), + errdetail("The primary's identifier is %s, the standby's identifier is %s.", primary_sysid, standby_sysid))); } @@ -152,7 +152,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint) res = PQexec(streamConn, cmd); if (PQresultStatus(res) != PGRES_COPY_OUT) ereport(ERROR, - (errmsg("could not start XLOG streaming: %s", + (errmsg("could not start WAL streaming: %s", PQerrorMessage(streamConn)))); PQclear(res); @@ -275,7 +275,7 @@ libpqrcv_receive(int timeout, unsigned char *type, char **buffer, int *len) if (PQconsumeInput(streamConn) == 0) ereport(ERROR, - (errmsg("could not receive data from XLOG stream: %s", + (errmsg("could not receive data from WAL stream: %s", PQerrorMessage(streamConn)))); } justconnected = false; @@ -297,12 +297,12 @@ libpqrcv_receive(int timeout, unsigned char *type, char **buffer, int *len) } PQclear(res); ereport(ERROR, - (errmsg("could not receive data from XLOG stream: %s", + (errmsg("could not receive data from WAL stream: %s", PQerrorMessage(streamConn)))); } if (rawlen < -1) ereport(ERROR, - (errmsg("could not receive data from XLOG stream: %s", + (errmsg("could not receive data from WAL stream: %s", PQerrorMessage(streamConn)))); /* Return received messages to caller */ diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c index 9f86b0645d0..4dedcdc8b2c 100644 --- a/src/backend/replication/walreceiver.c +++ b/src/backend/replication/walreceiver.c @@ -29,7 +29,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/replication/walreceiver.c,v 1.6 2010/02/26 02:00:57 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/replication/walreceiver.c,v 1.7 2010/03/21 00:17:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -283,7 +283,7 @@ WalReceiverMain(void) */ if (!RecoveryInProgress()) ereport(FATAL, - (errmsg("cannot continue XLOG streaming, recovery has already ended"))); + (errmsg("cannot continue WAL streaming, recovery has already ended"))); /* Process any requests or signals received recently */ ProcessWalRcvInterrupts(); |
