From 1d8378ed05e35c303a1ad8120a59bca8a1157554 Mon Sep 17 00:00:00 2001
From: Soumya <soumyamurali.work@gmail.com>
Date: Fri, 27 Feb 2026 16:00:05 +0530
Subject: [PATCH] skip virtual generated column handling during bootstrap

Signed-off-by: Soumya <soumyamurali.work@gmail.com>
---
 src/backend/commands/indexcmds.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index 7579afffcc9..7875e178aea 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -1991,7 +1991,9 @@ ComputeIndexAttrs(ParseState *pstate,
 	 * indexes. We therefore collect the virtual generated columns attribute
 	 * number for subsequent verification of expression attributes.
 	 */
-	if (reltupldesc->constr && reltupldesc->constr->has_generated_virtual)
+	if (!IsBootstrapProcessingMode() &&
+    	reltupldesc->constr &&
+    	reltupldesc->constr->has_generated_virtual)
 	{
 		for (int i = 0; i < reltupldesc->natts; i++)
 		{
-- 
2.34.1

