Re: protocol-level wait-for-LSN - Mailing list pgsql-hackers

From Jesper Pedersen
Subject Re: protocol-level wait-for-LSN
Date
Msg-id af102f21-0251-4d5f-b8d3-f0a0d0bebdf2@comcast.net
Whole thread Raw
In response to Re: protocol-level wait-for-LSN  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: protocol-level wait-for-LSN
List pgsql-hackers
Hi Peter,

On 10/28/24 12:58 PM, Heikki Linnakangas wrote:
> I'd suggest adding a new message type for this, so that it works the 
> same with simple and extended query. Or if you just want to wait without 
> issuing any query.

I agree it is a good idea to have a feature like this.

However, I agree with Heikki that we should have a separate message type 
for this. There are a lot of protocol implementations outside of 
PostgreSQL/Core, and they would have to adjust based on the version 
number of Core itself if we add fields to existing message types.

Maybe there should be an "Extension ('x') (F)" message that only has a 
fixed "header", and the rest of the fields are based on the "header" 
limited by the message length field - sort of free-form. The result is 
returned as a "DataRow ('D') (B)" list.

Thanks for working on this !

Best regards,
  Jesper




pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Reduce one comparison in binaryheap's sift down
Next
From: Jesper Pedersen
Date:
Subject: Re: protocol-level wait-for-LSN