Re: Replication protocol doc fix

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Replication protocol doc fix
Date: 2021-06-16 21:25:42
Message-ID: 805393.1623878742@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeff Davis <pgsql(at)j-davis(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2021-06-16 21:54:21 Re: A qsort template
Previous Message Jeff Davis 2021-06-16 21:15:35 Re: Replication protocol doc fix