Commit a15d387c authored by Peter Eisentraut's avatar Peter Eisentraut

Improve logical decoding log messages

suggestions from Robert Haas
parent 473f162c
...@@ -1268,7 +1268,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn ...@@ -1268,7 +1268,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
ereport(LOG, ereport(LOG,
(errmsg("logical decoding found consistent point at %X/%X", (errmsg("logical decoding found consistent point at %X/%X",
(uint32) (lsn >> 32), (uint32) lsn), (uint32) (lsn >> 32), (uint32) lsn),
errdetail("running xacts with xcnt == 0"))); errdetail("There are no running transactions.")));
return false; return false;
} }
...@@ -1799,7 +1799,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn) ...@@ -1799,7 +1799,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
ereport(LOG, ereport(LOG,
(errmsg("logical decoding found consistent point at %X/%X", (errmsg("logical decoding found consistent point at %X/%X",
(uint32) (lsn >> 32), (uint32) lsn), (uint32) (lsn >> 32), (uint32) lsn),
errdetail("found initial snapshot in snapbuild file"))); errdetail("Logical decoding will begin using saved snapshot.")));
return true; return true;
snapshot_not_interesting: snapshot_not_interesting:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment