diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 31bbc0d4c2e..cec56978b74 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1369,7 +1369,7 @@ The commands accepted in walsender mode are: - Current xlog write location. Useful to get a known location in the + Current xlog flush location. Useful to get a known location in the transaction log where streaming can start. diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index f593c529842..121b33d2ab7 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -315,7 +315,7 @@ IdentifySystem(void) logptr = GetStandbyFlushRecPtr(); } else - logptr = GetInsertRecPtr(); + logptr = GetFlushRecPtr(); snprintf(tli, sizeof(tli), "%u", ThisTimeLineID);