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 1vSXuA-000Dlz-00 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 09:51:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vSXu8-00G7pQ-1r for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 09:51:40 +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 1vSXu8-00G7pI-0o for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 09:51:40 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vSXu6-003jZR-0K for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 09:51:39 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b728a43e410so507337566b.1 for ; Mon, 08 Dec 2025 01:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1765187497; x=1765792297; darn=lists.postgresql.org; h=message-id:date:content-id:mime-version:comments:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ES3FGiaNlbHVxsyKMjgvpYRcG0L0XX9oXjxUcJLyzUc=; b=h3VykP/WUvx0eHi7zTj0d/+zlh6JImfT8JJShlORb+2JDop0As7silSCb7eAD10jzj kntOnuNp63gKKI1gNO7A+R7lYhoaBl4z/2XmzNYoukBKKau5ufaMVPfhiJAfazu8dhhy sSeEDodBh3i4Da3syJVyZ8iVwMQq0N3zpj4Q8E7bgxN/boRwbq9bANMUfhYWuse1XCD+ wdzp4ap9Q6eW+88XEWYgpx3uOFUOWQ5q1ReuR1D5Hnxz/npMy8TzuuBAMAhHvSIxwLHK DD1VDogh/s94HVUg9FhAvdPnPY5Mwwftg+6I03O6DKMyzirGywuSMH0dJh/k9KSELbGe HRJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765187497; x=1765792297; h=message-id:date: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=ES3FGiaNlbHVxsyKMjgvpYRcG0L0XX9oXjxUcJLyzUc=; b=US7Ka72J/11kRctbe6HPhckIduG4rcfhtnKOjwdhQqMdKwJL7uLH6RiaYHzL2NAyqV oPhTMx7SKS/7UiOQ7Cd60xuHvYzKwRqGnMHyMt9fleAEDvsQnsgSzYizhDgPws9U91/s AOB4LBi1/7HFzOm5Hn/M6FzK9BhZg9pra2c5RjGECa+J8zSCGPxVXhiU5onaK7Hr0pAE SFxP5fUNBmU22mKj6/wts+wBMJddwfGGwakfyeAX/IPqRS9jeZE/qfFYsK9tD59io49+ XfXCFRFj+jwYYZ7UUSKIY39gHXsbvXHp8bCB/IUs5Ik+sS6M2MhUvHVsBqho6BMP+Xxl MAxQ== X-Forwarded-Encrypted: i=1; AJvYcCXZwjrLcv6ZwiSzBRUJfAAenQCpFz/45VFlyyXQPwkvPFqVJ+dQHzBrgq9VnPzGasi2PFjWLHr9F9t+EZB0@lists.postgresql.org X-Gm-Message-State: AOJu0Yyvcfex225RznHjGcDbPiNYi4e+kVsJgIUGgzwESpIYyjzYYs8V NA6AtPfe87wLTjbls79z5IDB+mAZJgNFVFl29spwqFUfBh3Q6w6+sr2gRdkrQx6S4cs= X-Gm-Gg: ASbGncuXr51Cq42xTZEOM12pH3NfQByEspbN3A8JkjvCOhaBNy1wfU9HmMfbZMm0O53 m2+UXDcGWif53WQOROIX1VRcwTQefqM9NWIgHNDi2sHa6E8mVH78qAqsnU6f+Z9lkOQWtXY6z/c ua9EFuthmKmMb8Law+JfPDUXnbhLcSTeNH4/jDXabDHsGACMTg0+9VbutcLKdUhUF+gV6E623J6 MfjePAd1qD0upiBRUjlvM9B14kNC18KgYe5ZKONHuF5sHabODhhYh3ahtSEwhzTmM4j+HZg/2x9 TLYI77DcfUpjsRx2qxjClU0MWwK0A9lSBuHWn07ltVE6MJFwnkLBW1lTmp2+J1jApyVwxx255UC oOiDeA92PLyPKXqa8KkpNfoWISM5k+9D0w+LllwJaGZfPKrhUygecdb9ZkE2pYnEgcn///ZfGPT g10Ar9rBUMn25ydi41EbJNdXYpa9ES0BRwjpk= X-Google-Smtp-Source: AGHT+IG2Xf+N/MPyotcgYyxG91aRFRn2SmXvh06CcGHTWOdjn2wRXnkzHzY7TD0xcjMADmtAdtpj1w== X-Received: by 2002:a17:907:724f:b0:b73:278a:a499 with SMTP id a640c23a62f3a-b7a24306ab7mr865809566b.15.1765187496948; Mon, 08 Dec 2025 01:51:36 -0800 (PST) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b79f449d5bbsm1086427966b.25.2025.12.08.01.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Dec 2025 01:51:36 -0800 (PST) From: Antonin Houska To: Mihail Nikalayeu cc: Alvaro Herrera , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202510301734.pj4uds3mqxx4@alvherre.pgsql> <116433.1764870207@localhost> Comments: In-reply-to Mihail Nikalayeu message dated "Sat, 06 Dec 2025 19:16:00 +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: <19489.1765187496.1@localhost> Date: Mon, 08 Dec 2025 10:51:36 +0100 Message-ID: <19490.1765187496@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mihail Nikalayeu wrote: > Some comments for 0003: > > > /* allocate in transaction context */ > It may be any context now, because it is a function now. Inaccuracy not introduced by REPACK, but I think it's o.k. if the next version of this patch will remove the comment. > > result = CopySnapshot(snapshot); > > > /* Restore the original values so the source is intact. */ > > snapshot->xip = oldxip; > > snapshot->xcnt = oldxcnt; > > I think it is worth to call pfree(newxip) here. ok > > "This difference does has no impact" > > should be "This difference has no impact"? Right, thanks. -- Antonin Houska Web: https://www.cybertec-postgresql.com