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 1wA2Fs-0020K9-0m for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 08:57:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA2Fq-00G0EH-2J for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 08:57:51 +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 1wA2Fq-00G0E9-1I for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 08:57:50 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wA2Fo-000000010F2-45AF for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 08:57:49 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-488a14c31eeso21669435e9.0 for ; Tue, 07 Apr 2026 01:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775552267; x=1776157067; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ho1/AqAYD36avmK80jld3i5G4+7Ll+EDvo7OohOU3QA=; b=HRUqJbGn+f+uOD8cu/av8t0ukPrs4bOjTw5lG/a+qjHkBDfhHvyaGoHzjSNwsliLtJ ylT3jerssOQfNPyakMcgAo/llq+zAccEjA4ae6G/ra0mcmKLPTdzpKu+hB+a38+vLnLy bJ+t/ICqyWoBRphX0VAJr85y7zZ4YuvIAqOwN1OLAsMCweUoNFcD+sQPRVVJM1mCioiH mQsX20/0bzNY1Lom8gLmZHCdMh2gSiIwum+mQFYcJHtZZL1hP6iJEAgaL447rgudNIz+ 4jHbllB0fEY6RN3V/F29FKAaE75xmh86PhKQ67idu72070+/5hG7yg072VoH0Q41c8pb YIaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775552267; x=1776157067; h=message-id:date:content-transfer-encoding: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=ho1/AqAYD36avmK80jld3i5G4+7Ll+EDvo7OohOU3QA=; b=fk9nQWM56XNZv+S35+k9asMb4GmrSeWFTKaHNKgvw5Q53QyUIy9Udeq9HjScJfxK2F 8B/i/rrA/ja6tdCaLE4jR9ddDUm5AyrG3xFUAyXsgMItnRDO2r/FPEuwVxCZ1rHmxba3 5fWabGvERq5SFrgFcMBx8uOQE7y7kiTg9s6vjo4C481YozHEMaX2ByZEJIsnBL+lRvRL 2Rk9hIjMXgcK0qEhfGVv5eqaOm9UM2lYbNOcBGktpgR9jf4p/Qll0qrzyvNZgyAZm2Ac wr+7eFjcNNKRLUTgY91uSa7jg48xhw+Ys8NntTeuDkLpsNWhlJkrQ5T3g9v9h5M2m6kP +g9A== X-Forwarded-Encrypted: i=1; AJvYcCULCIezwnRskTlAGSvmBm3DVKiUicJ78sG0QJ+w0OOPlvTEfC6eynZeyfLgVHdipPvmmEaoGnkobCzRd6eN@lists.postgresql.org X-Gm-Message-State: AOJu0YwGKSCGXNdydidY+3jqmD24T73irZvI96/1VL5I31MNozuJxKEV jL0S4roxWZUIl6sJYO2SufFgpKrkNOwVqn+ZoVrT5TyiRuNP6a5bhM93PHzGRkcVjFo= X-Gm-Gg: AeBDievDYyLXFMwgH+ECAgzo3vbwxUiFjZ1onpYXHnB2vo2QU+S4NhjlOu55n8T2qXC gFVLtdTE1iu96JxIR3e9D1XELPz3zuz7yqbOdcBBVQRGGUMCj2VwEYX7R4CyJSsmytL+V9QiGLe JC65oqvAbYeNG8RX7oShdlxFmV20SQowSLFPDbsCCfhaOgqg8U40LCdqm78chKw3P4CvbzhNiU5 7EuSwEt83Ym+8S+4n3p2B4zNCojna6dE0up0wfNITOmlM+gHQiIOFi/HGI++4nNvz7zYMrWyhBW GyKAV7OJ4nNC2wrEHJGaDnIFcC0q8JB/xvX8yGb08VoejYE0CYtY9rigy1rqLMclNCuasiWkl7L G8yjOuDiCEKA2leaXaJyCbN7P/eync0AgKkv6xmhJOW4FsTdM7GyPnsw32SyJPSdpv+bGygokYr gGirxJIRqzE7e6ykGoVFZZz+eRAlY4hqLeIntX X-Received: by 2002:a05:600c:6085:b0:488:b239:77ec with SMTP id 5b1f17b1804b1-488b2397962mr84945575e9.17.1775552267367; Tue, 07 Apr 2026 01:57:47 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4889f6843dfsm336237685e9.12.2026.04.07.01.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2026 01:57:47 -0700 (PDT) From: Antonin Houska To: Srinath Reddy Sadipiralla cc: Tom Lane , Andres Freund , Noah Misch , Alvaro Herrera , vignesh C , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202604060918.qw5ms7cbr2hz@alvherre.pgsql> <20260407011056.50.noahmisch@microsoft.com> <1976915.1775537087@sss.pgh.pa.us> Comments: In-reply-to Srinath Reddy Sadipiralla message dated "Tue, 07 Apr 2026 14:12:22 +0530." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 07 Apr 2026 10:57:46 +0200 Message-ID: <188275.1775552266@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Srinath Reddy Sadipiralla wrote: > Hi Tom, >=20 > On Tue, Apr 7, 2026 at 10:14=E2=80=AFAM Tom Lane wrot= e: >=20 > Maybe you saw this already, but BF member skink is failing on > src/test/modules/injection_points/specs/repack.spec: >=20 > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D202= 6-04-06%2022%3A50%3A41 >=20 > i looked into this , it seems like valgrind catches the uninitialised pad= ding bytes, which > repack worker is writing using BufFileWrite, it seems this fix solved the= problem. >=20 > diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/sn= apmgr.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_ad= dress) >=20=20 > Assert(snapshot->subxcnt >=3D 0); >=20=20 > + MemSet(&serialized_snapshot, 0, sizeof(SerializedSnapshotData)); > + > /* Copy all required fields */ > serialized_snapshot.xmin =3D snapshot->xmin; > serialized_snapshot.xmax =3D snapshot->xmax; >=20 > thoughts? Could you reproduce the failure in your environment? I haven't thought of this explanation because BufFileWrite() only copies the data to a buffer in the BufFile structure and BufFileDumpBuffer() writes the buffer. Maybe valgrind is able to track the copying? --=20 Antonin Houska Web: https://www.cybertec-postgresql.com