Jeff Davis <pg...@j-davis.com> writes: > One thing I don't fully understand is what would happen if the client > issued the Sync as the *first* message in an extended-protocol series.
That'd cause the backend to send ReadyForQuery, which'd likely confuse the client. > But I think you're correct in saying that the discard-until-Sync > behavior only happens if the extended query protocol is used, Certainly, because otherwise there is no Sync. regards, tom lane