From c9e2625802c9683240b8f80d36594bab22963660 Mon Sep 17 00:00:00 2001
From: Timur Magomedov <t.magomedov@postgrespro.ru>
Date: Thu, 25 Sep 2025 17:20:17 +0300
Subject: [PATCH] Initialize in-place update struct

Random number of messages in WAL can fail server start otherwise
---
 contrib/vci/storage/vci_ros.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/vci/storage/vci_ros.c b/contrib/vci/storage/vci_ros.c
index bf316fab543..869491c62ba 100644
--- a/contrib/vci/storage/vci_ros.c
+++ b/contrib/vci/storage/vci_ros.c
@@ -688,6 +688,10 @@ vci_WriteItem(Relation rel,
 		uint32		newlen;
 
 		xlrec.offnum = offsetNumber;
+		xlrec.dbId = MyDatabaseId;
+		xlrec.tsId = MyDatabaseTableSpace;
+		xlrec.relcacheInitFileInval = false;
+		xlrec.nmsgs = 0;
 
 		/*
 		 * originally taken from heap_inplace_update() in
-- 
2.43.0

