Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vyPOp-0005fA-0g for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Mar 2026 07:15:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vyPOn-003FQl-1v for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Mar 2026 07:15:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vyPOn-003FQY-0y for pgsql-hackers@lists.postgresql.org; Fri, 06 Mar 2026 07:15:01 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vyPOm-00000000jZb-08Wk for pgsql-hackers@lists.postgresql.org; Fri, 06 Mar 2026 07:15:00 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4833115090dso90925155e9.3 for ; Thu, 05 Mar 2026 23:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1772781297; x=1773386097; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=97Lhp2+n4/73ZSoC5xkFFj/PjTTCYL0WDrdlPdY2YJ4=; b=RmzCZhwdURgBGQsK1OdIHzWW4DJ+XXdpTDiwYauzwJNumwsdR+9gY5SkbuTdTMg43l ZeUhYyjgDGFkfEnQptPcilIvbQxhaiLc6JZwEyE+b4EYCgf+lEBhuxyLARAf5pkGLxjq A+QJswhosleELYnCpBV1TxVRUZbMOlfmLgCDptpMJr7YDaO8VB+cUwsSeHRP9iCKzkez x+e0YatFpSakqH7yLgTvkgm725TPv7Pgw7qMhW18iVJCwQq9Kk0VTZOvg5vnJ3Q2/H8T MUIoUbHKXdvp9sj1JMmT/LV2oCn1/6z0eI/y4IqDyOzkSj6lKjKf7/lag8yTXZX4oFi8 LVxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772781297; x=1773386097; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=97Lhp2+n4/73ZSoC5xkFFj/PjTTCYL0WDrdlPdY2YJ4=; b=aJGLa1zwUAvG7k7cDbUU707p9QZCGdukVG5jRNKUfsmC4HXL/yB4g67DCpa+Q1Gid/ 7Q7KVrlfezV+DkBA9IYY4u9TJM5cDYyL9z17I7GntWrsGElO5524N2TkGZiVwlG0G9nj Eq+OJG/b7r0OTi1zTWKA+RhwzxKifrXSf4Z4RjEfK3XWlEIZeh26YovxZgu9c9yOyLdJ a/FuglTIZG4Eb2l9AmEH2ck5by5JjQFQWF9jAoKUERAFnBSf4P4wUcDWrMLFs+HGL7ns YcPpmvyNPOsLyupcls/JXlDXvWFn0Z7kgpkVFQsVX4cIgtLvk7qLPdmyw2HYyZs6ypk2 6zlQ== X-Forwarded-Encrypted: i=1; AJvYcCU0N1yW+EMdppWm2ENg74GRa5NFgvR9DX3w9kdZpVZ+UXozJeGTjQBC0V/mFj3DSINi/1Q7FFvu5nwnoF95@lists.postgresql.org X-Gm-Message-State: AOJu0YyUUYjaOvk8a1XYR5Q5nr+gMEzNLREydApIr+lH/NyGXzobSWyJ P0mkbTyQR5OuKipX85RUuGaT/JptYBiyzIHqWYDa4vXZ0M1zysnN7Wgl2x90gyihcSk= X-Gm-Gg: ATEYQzy7AjFTyfuh4IdL//JivTaudfMX2W35uyYnD/aF6bGvKDCQK8KSNJMrJlJqMDW AtN780+ZKekHmBJxpSYcTlQLFRNGn/P8qFhS4lwkpgaDIkFcgsJfPF6Ymu0TK0mSSId8JYZx/lI U3QnTI2fMye6tf4VZX9sfrB8EHsbe9L4O6k+8n4+UJ6MKpLNFh2J+KdXQQk1knwtB+ABe96v9op m25RwXv8Id16tz2uq7dNMFJyAqExcgqXB30cH6ESWXCJAyko0LrT8zXlmJy5cM6FFzTMI2tGrUR Wa4uCuKBTsVrVpP8A6Y/m2Fjpk03vyheLQnB+NsmPut3Q9whesD+S0V8vwAm6dQ9DYxajgir4HW +U9U+el4yJKY4Ix/wh5kokPBywLtRhG+E8EYqKmgn7/sEskVEN7wIXpBB9HOB0qfSAnSMXngWaE sODMT600I/Z4ksuasPskGh4k/dfcxsb+OFcAs6 X-Received: by 2002:a05:600c:3acf:b0:483:6bb1:117 with SMTP id 5b1f17b1804b1-48526978984mr13470355e9.32.1772781296744; Thu, 05 Mar 2026 23:14:56 -0800 (PST) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-485276b0adasm13971235e9.10.2026.03.05.23.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 23:14:56 -0800 (PST) From: Antonin Houska To: Srinath Reddy Sadipiralla Cc: alvherre@alvh.no-ip.org, Mihail Nikalayeu , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <100248.1772048475@localhost> References: <202602241757.6ac3iss2u4vo@alvherre.pgsql> <9116.1772009759@localhost> <100248.1772048475@localhost> Comments: In-reply-to Antonin Houska message dated "Wed, 25 Feb 2026 20:41:15 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4199.1772781295.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Fri, 06 Mar 2026 08:14:55 +0100 Message-ID: <4200.1772781295@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Antonin Houska wrote: > Srinath Reddy Sadipiralla wrote: > = > > The concurrency test failed once. I tried to reproduce the below scena= rio > > but no luck,i think the reason the assert failure happened because > > after speculative insert there might be no spec CONFIRM or ABORT, thou= ghts? > = > Perhaps, I'll try. I'm not sure the REPACK decoding worker does anthing > special regarding decoding. If you happen to see the problem again, plea= se try > to preserve the related WAL segments - if this is a bug in PG executor, > pg_waldump might reveal that. I could not reproduce the failure, and have no idea how speculative insert= can stay w/o CONFIRM / ABORT record. The only problem I could imagine is that change_useless_for_repack() filters out the CONFIRM / ABORT record accidentally, but neither code review nor debugger proves that theory. (Actually if this was the problem, the test failure probably would= n't be that rare.) -- = Antonin Houska Web: https://www.cybertec-postgresql.com