mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
I added a result set to START_STREAMING command, but neglected walreceiver.
The patch to allow pg_receivexlog to switch timeline added a result set after copy has ended in START_STREAMING command, to return the next timeline's ID to the client. But walreceived didn't get the memo, and threw an error on the unexpected result set. Fix.
This commit is contained in:
@@ -431,7 +431,9 @@ WalReceiverMain(void)
|
||||
{
|
||||
ereport(LOG,
|
||||
(errmsg("replication terminated by primary server"),
|
||||
errdetail("End of WAL reached on timeline %u", startpointTLI)));
|
||||
errdetail("End of WAL reached on timeline %u at %X/%X",
|
||||
startpointTLI,
|
||||
(uint32) (LogstreamResult.Write >> 32), (uint32) LogstreamResult.Write)));
|
||||
endofwal = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user