Re: Replication protocol pipelining edge case

2021-01-05 Thread Jeff Davis
On Tue, 2021-01-05 at 09:17 -0800, Jeff Davis wrote: > The reason I ask is because it makes clients that do pipelining more > complex. If the server always enters copy mode, then the client can > send a CopyDone and then pipeline more requests behind it. But if the > server may or may not enter cop

Replication protocol pipelining edge case

2021-01-05 Thread Jeff Davis
The streaming replication protocol docs[1] say (for START_REPLICATION): "If the client requests streaming at exactly the end of an old timeline, the server responds immediately with CommandComplete without entering COPY mode." Is there a reason we do that? It seems like enough of an edge case tha