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 1w7un1-0001Xn-2g for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:35:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7un0-00HWXU-0y for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:35:18 +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 1w7un0-00HWXM-04 for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:35:18 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7umx-000000000sY-3g4e for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:35:18 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-38a723b2b29so58752061fa.2 for ; Wed, 01 Apr 2026 05:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775046915; cv=none; d=google.com; s=arc-20240605; b=X0LhVi5z5VeNej2FoY+LPSVVyqau+WH0t7uTKqKrpmZl736h0YyLB6dCXKh7C3gLs2 Ul/5wUrhGFcw/yJfxfxVbYeISPK8/5/VP1lpSkoN4i79d8jZjxsPGInhxGbzHSwmTo1z fx+XEd4v+XnyS48zUp7iDHBdLv2+lq2Aw0CienWi5sovTPwCSsNOwh6a2GXFiSYpg/Ir GQUGr5XMZ4Ce0ADinK723cm5z80fTJGXAtSr8ec0irmkOZUf2I2bwTDKQsqKFrhe6quQ DjSwDgS0NUz8aU9/z1HdTJGdT9BwvaanQlxO7PRZfaN2EqygGKr5YmWdESBad7omQ/zs Mtkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kdlEuT/pmMv3hrH/qrxYLMTS822ZzVfm42k36LusMU4=; fh=kLw8c65xOy7ZbTnXshsWJJhNpx7RUSywD1xCaqJx02U=; b=fL+r7BkBZZryw2Ssnhmnl0JZG20oWeFJbWJaHzfRatO/Uwc5rjASt5aNMB/1z7M95d AaBJxumx+4CUDxvDlampxNiHvpvZsaiZJCIspgwn2UaYjHCHEJtserpTMXet1YuIbc0H V/JJGYMwKK715smsWkGcT+1u2dscinDZ55FOT6AW0fDsEgDj4tp0LA2EyD+6L89fAuoy WccbGALwzWPpcSTgGw0+UUwtqkJuKIydib8SPRLRKFdvsW4ZZroJuOkLqzXRp5dt8p0l jygO/KFnTM7rkzgfANFSUhzLxL+jHJhz333Yo7QREwlN2cA3ZZWUQ3fym8gwGJ98bN70 g2vA==; 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=1775046915; x=1775651715; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kdlEuT/pmMv3hrH/qrxYLMTS822ZzVfm42k36LusMU4=; b=ryOMaalNZBuVs/qVqJbxwP86iaXrs3vN9HjCm/RTUTzJ8WtKUa+voYfdYnabFTgy5O eFRIR/FJlyyo3Y28tTrx+6xOSmhUDDwhJ40Qg7sEZ4rXVZIY+q0yk9QegL/zIVLl0rfp e0XXVF4TTG5omp9LxGKnl8Mc0N4pv8j8OOwgdunV5bwgMWdpv69c4N+POb0PphnOj8NX j61yIuWjYIsmxdlC6JNrJazFCPuJ0yVx8/IpsMzVd29CNsP4kPP4Rrql0qICGH+/Sqpw mEc517cgqzJzquK5vxTBZvOa2nBm1RMgLrSIA+6S2iZ5bYjVgFuCOWfLksEzFQqV9FCc QWqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775046915; x=1775651715; h=content-transfer-encoding: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=kdlEuT/pmMv3hrH/qrxYLMTS822ZzVfm42k36LusMU4=; b=YymPw5U4QowoPqnCxQo5YWCkeDnzOEgV/HxqFJHCRrLFHNzdTgq5AHzdeL+CTuPsze mperPSOauovZvimRFE3uDfW/4RdOKf8b7qGF93MEzLdek7mEm3rjN1NeTphNS/E3oizG hov1+y/TI73INkW3ta9Y91eUR/I/nj5WUcxb9OkX80H4pdYDjMQ3UAlkK1RIQWKpS3au h3K6RtcUE750tL8p9HI4A1N7+TR2wx03XkiUI6TFDH4AcxfQGzq4uQMbh8yVTXNMpSfv WbeoAF1tn4TWJAimk2XFzIEO1N5np6yVKckT0i44t+vYh9F3TfoJEZZq5EQ9wLehFKVe lxDg== X-Forwarded-Encrypted: i=1; AJvYcCUrDIRdKyQLhyalvKibvCwVjJyp1IXhOmNFeEGSKBSmMX1sQm88USpm2uSvXtPfb2KemAmvLY7Y5eSK32Fy@lists.postgresql.org X-Gm-Message-State: AOJu0YwKjjm/zVoGDC0JAyMqeHOEuy7HWMm0SJ+RpV5oqruE3CRfmAqU /l0XlyKeViSvnkElt8UfqfklHfujBeQj8IqyEM0uerCvVg8kmlRQDGxIx7ordavmJkIkLYZJeo2 LpmGAVCDW8r3CzVy3kreytWs8zAu5Ee4= X-Gm-Gg: ATEYQzylVUFfqrRdFQ8XxjqiyKGVXn6l/3iWkKzDktKGJQu5B7/sJrVeEEUKTSxkvmm 1xrYYiRzrUXKzWAzNadtotBO4Xkjf92doIpWnkfFOdplLPT0ff0nQkV4eZ4dJyxnDQtPLFqSd+q keAS6ygaKNigBlHJuPovcAzVlRWnPJ8ALAOplft0yINg0WMnKKFvHUatE/8Au0tVHMhYTetnPwY 7kr8GSCQqUI6bQrh+6OU2UMt2z2CHNYEL59xv1YV4Dmdw3x3fWBEf5yu7ZVLU1K/m2wQbL0FbKo EDfVeTM2kTV0CIhQeMRYnWGy68M9RlUWxuvEwd71H9VyxKU= X-Received: by 2002:a05:651c:160d:b0:38b:e611:42eb with SMTP id 38308e7fff4ca-38cc2f1ce5emr13586501fa.3.1775046914626; Wed, 01 Apr 2026 05:35:14 -0700 (PDT) MIME-Version: 1.0 References: <202604011042.zdevjay65ws7@alvherre.pgsql> In-Reply-To: <202604011042.zdevjay65ws7@alvherre.pgsql> From: Amit Kapila Date: Wed, 1 Apr 2026 18:05:01 +0530 X-Gm-Features: AQROBzCLQkj3i2UxF48ryysquisPp7xPok5IfzRD4_actENaDwCnjvqEg8dkgIM Message-ID: Subject: Re: Adding REPACK [concurrently] To: Alvaro Herrera Cc: Antonin Houska , Mihail Nikalayeu , Srinath Reddy Sadipiralla , Matthias van de Meent , Pg Hackers , Robert Treat Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 1, 2026 at 5:12=E2=80=AFPM Alvaro Herrera wrote: > > On 2026-Apr-01, Amit Kapila wrote: > > > BTW, is the reason to skip REPACK while building a snapshot is that it > > can take a long time to finish? > > As I understand the issue, yes, that's precisely the problem: if you > have one REPACK running, then starting a second REPACK (which requires > building a new snapshot) would have to wait until the first REPACK is > over. In other words, you wouldn't be able to have two repacks running > concurrently. This sounds like a problematic requirement. So having > snapbuild ignore REPACK is there to allow the second REPACK to work at > all. But more generally, *all* users of snapbuild would be prevented > from starting until REPACK is done; so if you have a very very large > table that takes a long time to repack, then everything would be blocked > behind it until it completes, which sounds extremely unpleasant. > > So, if we're unable to get this particular patch in, we would have to > have a big fat warning in the docs, telling people to be careful about > other load if they choose to run concurrent repack -- it could have > serious consequences. > Right, I think during this time logical workers will keep timing out and restarting without any progress because during this wait, we won't be sending keep_alive messages. --=20 With Regards, Amit Kapila.