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 1wA21A-00207N-2j for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 08:42:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA219-00FuWL-13 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 08:42:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wA219-00FuWC-05 for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 08:42:39 +0000 Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wA216-000000013yT-215L for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 08:42:38 +0000 Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-9539d9f1675so3067980241.2 for ; Tue, 07 Apr 2026 01:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775551354; cv=none; d=google.com; s=arc-20240605; b=TypmAZWSpTeH48WNcEqq7bW+WPZjW6Ve0CPp5xBsRt88cle4f0/cY9uSBSNxD5oDX4 MwMxW6PeUxtwiZetzngCnREyWdCoO5k8m+apwQAzb2AKOITta3a70Sah50Q2T2wNs/+j M5pMhv2zHiAUGknLx7lrXtFbd6XbodnLvP8X7FpPzrvkzY2HnPfftEe7wTlyzDTiNTHV QqYcJzfEOFXJ6k91IUo9A2K9o8DyreLfjsJUj01GGsORZ7QWNRCPMfVJwL8jnu8U+3Is gGXc6DbEaf4gUw1Tu94r89+fnks1PJB66t/+r2fkplMuxdPZaUfhC1yHAZfZtzuG6Jh9 kFIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Oe6vKui5RISPZ2RGLKrovbQNmjkU+UzbSCVl2gcNPCA=; fh=W3b1sUr8755annnNMeY1FxXiULneEfR8M0LaBEY31Yo=; b=balulbLPCOWIiu3ANaGwHDfVWGIsZ701L1ZD5XL2U4Nt4uOqAAG60P6jTM4oXADTyu 050idK4JLJLBCuwtRv3xzUJlAiithrjF6Q0FvmWNKPPXPJCOE4O2RrlSv/poPkS6QRNF cLCC34xiuYNAQ33AEILA7gAhxreDo4TtiS8QtbjsHMsZ/DYfE+lft3rq3u9dZ2NQ4DMA OhwYhigMMbE/Y3JD6rL0SpHQCj8lVW7LTnsYS7fPC5a36hvB2iD1HYyRxaTzVQanwDg8 7kuiS9Eqx678YN58S7lIL5Pk5ZrvV29/hTpM0RRn9TBVQh2bUoGGYL3mPv/LqIaqZWaB jE0Q==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775551354; x=1776156154; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Oe6vKui5RISPZ2RGLKrovbQNmjkU+UzbSCVl2gcNPCA=; b=m4AwjPgToJ3F+R1UeZaXjfh92dV8U1cSoAjY/QW78CDcNExCMpszT0+NjI3k5AWCBu NHYyIB99stChG5zsvSQ63blOJopvw+QBOGxRk1S7S3ySPoZ4647wCc/Huoz/9zZOHBS+ JcIRN2Jb7CwcmUAymZH126/a1Q/o+FYFrHT2MWu4IcPysUyDrT50l4WuHv8xbQN7bAvu hdXmMmkkxBhBYkPtKvc0q9dso/b9W01/rqIdCYSaJUz8TNc06EO5HCrWRyCuhDlTdxsr LPdvY5yvYFN/n9mq7o/4JymwqRxSf/7iMTzr1KPxp/oCN6ngFTbQbeFA08a60/bX5Ftm zL+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775551354; x=1776156154; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Oe6vKui5RISPZ2RGLKrovbQNmjkU+UzbSCVl2gcNPCA=; b=l74hFjvTSYeQMlDNPE+XzHQmh0tmuGD1ac7R/j1FEQNmPzO8Dok/xlFEvtT4eL3c1x RQ1Pz4KJT206cvdAk5cNnvUjlrRDjvQuF1QASNnmezkICv7TnnhOmXe6tMewKJQoob+G wY0ksq9Q65t4H9ggF54VFGkcU8hU6uA0lP6o1U6u0wABZiQ13TPi0mU1jPMCG2W6nxSn ML/j6ru49yVeHl6/yqLIKIF+UBId/GnO+gsGlt7YLT5aDqQq6INQRCjVCauxF9mwgvZt pNG1F9oJY6S26AUyV1ojXnhqL3SUmsOXp2WaOUas+W43IoXFo7LN5By97D3o4QAogZBX jK5w== X-Forwarded-Encrypted: i=1; AJvYcCUmS6UKFkZUXD6VWXz8cUAk9IdVOwlxS6NFJAfYmbeDvVSGMYUgEj22gHqK1opfLkMCkREmkZ8dMqmK/Bu1@lists.postgresql.org X-Gm-Message-State: AOJu0YybNUB2fQndhSUUsfUvY9C2TyY/+2cTPXayCZtXiMhS9OoVO6fC 1ii/fBF1b4O/PbpzvUJ0YJKjtEltOvSFlpt8Qv9OirepOxyy7Gw1U3/PI7mE3znRFYo1udo7s0M 9HgIokN1oOw5x/r1HQ7B2fW9zw7wgLZk= X-Gm-Gg: AeBDieua4eUlbt/PX+xulelRBxi8fGDnvIRCeWa0XL7xERoYYArp9v7lRU0RLm/jyic y/O50cyHex75FZK3JObE2RSlEShGKsEijDBLP1OfyVA3Ww0qrCymcmmUIeQNovwnWh+U9jAEzK1 YRcIeyOov37jGqrzCWHJ7SwhUEXPk1puWVjU7LcPS4Ndc8LJ1msDbY2fXW+GQjTQraKxb4sHmeR /+ixwP0TJwU3inJ3FZO9uKcTrB3+7Ts3nR9ojsUDCmChGmqnAWp9Q88dOuk3sYaSu0rxeccTm1P 0nAzGx8CJcgKsMX72WCAChYZjCPOTKxMnowojklbQ70/PcliptSS2UT+F9mrWfnce/pApiQovAp peu9q2FpZKEwhjf+rlZrjekPL8Q== X-Received: by 2002:a05:6102:148f:b0:605:85f9:453c with SMTP id ada2fe7eead31-605a50d3dcbmr5926793137.26.1775551354418; Tue, 07 Apr 2026 01:42:34 -0700 (PDT) MIME-Version: 1.0 References: <202604060918.qw5ms7cbr2hz@alvherre.pgsql> <20260407011056.50.noahmisch@microsoft.com> <1976915.1775537087@sss.pgh.pa.us> In-Reply-To: <1976915.1775537087@sss.pgh.pa.us> From: Srinath Reddy Sadipiralla Date: Tue, 7 Apr 2026 14:12:22 +0530 X-Gm-Features: AQROBzDhUnqbYhY7FAlQJQTEleiTU_PTDSyg61lgMKeXBaf5WpbAV_WNWWJit7Y Message-ID: Subject: Re: Adding REPACK [concurrently] To: Tom Lane Cc: Andres Freund , Noah Misch , Alvaro Herrera , vignesh C , Antonin Houska , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Content-Type: multipart/alternative; boundary="000000000000c2b924064edac3dd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c2b924064edac3dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tom, On Tue, Apr 7, 2026 at 10:14=E2=80=AFAM Tom Lane wrote: > Maybe you saw this already, but BF member skink is failing on > src/test/modules/injection_points/specs/repack.spec: > > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D2026= -04-06%2022%3A50%3A41 > i looked into this , it seems like valgrind catches the uninitialised padding bytes, which repack worker is writing using BufFileWrite, it seems this fix solved the problem. diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 2e6197f5f35..f5682b87626 100644 --- a/src/backend/utils/time/snapmgr.c +++ b/src/backend/utils/time/snapmgr.c @@ -1739,6 +1739,8 @@ SerializeSnapshot(Snapshot snapshot, char *start_address) Assert(snapshot->subxcnt >=3D 0); + MemSet(&serialized_snapshot, 0, sizeof(SerializedSnapshotData)); + /* Copy all required fields */ serialized_snapshot.xmin =3D snapshot->xmin; serialized_snapshot.xmax =3D snapshot->xmax; thoughts? --=20 Thanks, Srinath Reddy Sadipiralla EDB: https://www.enterprisedb.com/ --000000000000c2b924064edac3dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Tom,

On Tue, Apr = 7, 2026 at 10:14=E2=80=AFAM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Maybe you saw this already, but BF member skink is fail= ing on
src/test/modules/injection_points/specs/repack.spec:

ht= tps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D2026= -04-06%2022%3A50%3A41

i looked into this , it seems like valgrind cat= ches the=C2=A0uninitialised padding bytes, which
repack worker is writin= g using=C2=A0BufFileWrite, it seems this fix solved the problem.

dif= f --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr= .c
index 2e6197f5f35..f5682b87626 100644
--- a/src/backend/utils/time= /snapmgr.c
+++ b/src/backend/utils/time/snapmgr.c
@@ -1739,6 +1739,8 = @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
=C2=A0
= =C2=A0 Assert(snapshot->subxcnt >=3D 0);
=C2=A0
+ MemSet(&s= erialized_snapshot, 0, sizeof(SerializedSnapshotData));
+
=C2=A0 /* C= opy all required fields */
=C2=A0 serialized_snapshot.xmin =3D snapshot-= >xmin;
=C2=A0 serialized_snapshot.xmax =3D snapshot->xmax;

= thoughts?
=C2=A0

--
Thanks,
Srinath Reddy Sadipi= ralla
EDB:=C2=A0https://www.enterprisedb.com/
--000000000000c2b924064edac3dd--