Improve logical decoding log messages
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 14 Nov 2014 01:43:55 +0000 (20:43 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 14 Nov 2014 01:44:34 +0000 (20:44 -0500)
suggestions from Robert Haas

src/backend/replication/logical/snapbuild.c

index 28e6c01e29ce40a818d82eca7f1a895575014fe4..200b54d7c2ac912c2dde3333e6755f32a0af3074 100644 (file)
@@ -1268,7 +1268,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
        ereport(LOG,
                (errmsg("logical decoding found consistent point at %X/%X",
                        (uint32) (lsn >> 32), (uint32) lsn),
-                errdetail("running xacts with xcnt == 0")));
+                errdetail("There are no running transactions.")));
 
        return false;
    }
@@ -1799,7 +1799,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
    ereport(LOG,
            (errmsg("logical decoding found consistent point at %X/%X",
                    (uint32) (lsn >> 32), (uint32) lsn),
-            errdetail("found initial snapshot in snapbuild file")));
+            errdetail("Logical decoding will begin using saved snapshot.")));
    return true;
 
 snapshot_not_interesting: