index aae0ae5b8aaba01d4fdc37edc87381d7eb194dfc..b7d95215764d77a19884bf36004d80c01c568da3 100644 (file)
@@ -605,9 +605,9 @@ DecodingContextFindStartpoint(LogicalDecodingContext *ctx)
/* the read_page callback waits for new WAL */
record = XLogReadRecord(ctx->reader, &err);
if (err)
- elog(ERROR, "%s", err);
+ elog(ERROR, "could not find logical decoding starting point: %s", err);
if (!record)
- elog(ERROR, "no record found"); /* shouldn't happen */
+ elog(ERROR, "could not find logical decoding starting point");
LogicalDecodingProcessRecord(ctx, ctx->reader);
index 2609a0a71048bcea357100baa9df32eabafb1ab5..6cd2279a2e3eb497202fcf7ee79cf2e72b8f3ba8 100644 (file)
@@ -276,7 +276,7 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo fcinfo, bool confirm, bool bin
record = XLogReadRecord(ctx->reader, &errm);
if (errm)
- elog(ERROR, "%s", errm);
+ elog(ERROR, "could not find record for logical decoding: %s", errm);
/*
* The {begin_txn,change,commit_txn}_wrapper callbacks above will
index a80298ba53dea2966c6c17a57733611e365c4e23..46175b7007051d6766e9a1c4c99663e4d25cb680 100644 (file)
@@ -529,7 +529,8 @@ pg_logical_replication_slot_advance(XLogRecPtr moveto)
*/
record = XLogReadRecord(ctx->reader, &errm);
if (errm)
- elog(ERROR, "%s", errm);
+ elog(ERROR, "could not find record while advancing replication slot: %s",
+ errm);
/*
* Process the record. Storage-level changes are ignored in
index fff7dfc64098fe63ca7ec6eeed6bace9757565ad..7950afb173c7e119efa3c1b85e9ddd7fb6b431a0 100644 (file)
/* xlog record was invalid */
if (errm != NULL)
- elog(ERROR, "%s", errm);
+ elog(ERROR, "could not find record while sending logically-decoded data: %s",
+ errm);
if (record != NULL)
{