Re: [PATCH] fix AddRelsyncInvalidationMessage

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Stolpovskikh Danil <d.stolpovskikh@ftdata.ru>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Bykov Ivan <i.bykov@ftdata.ru>, Lozhkov Alexander <A.Lozhkov@ftdata.ru>
Date: 2026-06-11T21:18:43Z
Lists: pgsql-hackers
On Thu, Jun 11, 2026 at 7:44 AM Stolpovskikh Danil
<d.stolpovskikh@ftdata.ru> wrote:
> I found a small problem in the AddRelsyncInvalidationMessage function of the inval.c module.
>
> A year ago, a patch was added that added a new type of message (SHAREDINVALRELSYNC_ID) and filling in messages of this type was not done correctly, the wrong field was used(msg.rc instead msg.rs).

I think you're correct, but a similar mistake also occurs just a few
lines earlier. I have pushed 99db753c656 to fix both things.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



Commits

  1. Fix type confusion in AddRelsyncInvalidationMessage