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 1w9i3s-001fjP-1S for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 11:24:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9i3q-0080Af-2y for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 11:24:07 +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 1w9i3q-0080AX-1w for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 11:24:07 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9i3o-00000000tDx-1x8J for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 11:24:06 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488aa77a06eso19066185e9.0 for ; Mon, 06 Apr 2026 04:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775474643; x=1776079443; 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=6OAQo1uf7+h1aX0RA7+cZqHNfGNlIY42QqUKsYG6f7M=; b=ciHx/bUXXhjqsiBaquivPfLMxa/m4kjdiPsILHz/+WjzrimPm0G7qbkEy7rS//aO9i GapR4OSsOZUmEYLoFePa7ZTW4N9gEODU6agaTdMkfbCsXNvCVCr908QPLPmc7Dj0Z7lI EbspPShb8Br6/mDXjd6SnKUuIDeDgMIPvC4Z739LLt4eC4iXqFqIfnBt4qeTTiNm6bKi CwgNGg5G/CHWePK9t0si+EiJKejwg12VfF3ANtkcoiTzi9iJZjGRGFIuY7/q2ly28rhZ gJb6ywSKt8HlkZc/ocqyJjuib+bKueyIfHy+F3KKLWx+dvC/4S8v4nHOu3xoxm4KNf/h XfKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775474643; x=1776079443; 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=6OAQo1uf7+h1aX0RA7+cZqHNfGNlIY42QqUKsYG6f7M=; b=HvQT0/DWxXGjYh9mVC5bLn/PDfb+GhUV0xtcdns6b6LGK10kp7eKvatO6kSGvN5rus tEjEGnw0i4hPnWa19CwVJKka4WsoFYjOnJnozMWQNHHSotD7nW8bM22Oin5FuIw3mCy/ kWjUyunWYlzi1WB267UQ9MSd0WXU0t52A1/N0Hgk9G5q7T7lhd5aSzRKn4jc+6AbAmiw 3zSUI2ZKdCNvQFE54yzstrrDYFoMJc7yX303xgX9yZrBjFtiVjwUnZLifCo08JZMd0NW WGPkU5kST5cJjArl6YB5DjshUFmKHv0Q6zmrpuiLmeL9LT8fU8+Je6SWJzYGLJzS2Plx 487Q== X-Forwarded-Encrypted: i=1; AJvYcCXenBf+Z3PZdHPq0+UKC89qDM+/xyamXwvzOjKXSua5bXyui0/iSrHluFkwWrosHUSxHVlYb/a/4d71C9Hp@lists.postgresql.org X-Gm-Message-State: AOJu0YxnYnWCcoFtSVS8hJ6pXB5xAS6aDZgH/fRCWtW3vkSRHj8Ny9bH 0V0DPQzZ5feq4AS5QhKwguASSpSyCTyFL31TED9zEvV9ijm6xymUGNrmR4IrEmKUNgo= X-Gm-Gg: AeBDieu3/i6VyyzaacjBe0kt1bRxJXb4vmDLysQY2BvmN9XDzPzLkuxXfJGFxs2WWfG mLX2hQKD/7OXAyo9YrI4VqLgU+90A2/3ZKzF4kS5eUWY5khkIslBKNtMdrNui3iXQAmj9YidMb3 tSmrnKCGu+u59LzZ+9t5mJafco/C9fkJ8qjfiYQ0D/Et6N7arncKLppMNQh6msZYjpwkPRwEo/w iyC69EV7ZNJR/wIHMKGxPONgUcrdqoVO3slMqt4XrBxIGxRXILQDT2/A2IDzzNHMzV5Z69qes8G ZHOHrubooPhnCxoC/Z3cYSn+yirz4mOqeBqnz1Wm6orlX5q5QYFWRmOJO0pGhmqi2bT/75KXDfM VCG+aizK1LIMiru3Hhx2Q4KPg3Vc3MaecoICkd8EHPTBM5X1NAojwC/htyCdg8+tGRO4Iregmbu X7cg+F5GLWqdNTMiLnwIixEhhwfvmMSMBy9Ey1 X-Received: by 2002:a05:600c:a404:b0:488:b749:8478 with SMTP id 5b1f17b1804b1-488b74988e4mr14509485e9.6.1775474643284; Mon, 06 Apr 2026 04:24:03 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887e83682fsm484434095e9.7.2026.04.06.04.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2026 04:24:02 -0700 (PDT) From: Antonin Houska To: Alvaro Herrera cc: vignesh C , Srinath Reddy Sadipiralla , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <202604060918.qw5ms7cbr2hz@alvherre.pgsql> References: <202604060918.qw5ms7cbr2hz@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 06 Apr 2026 11:38:20 +0200." 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: <83935.1775474637.1@localhost> Date: Mon, 06 Apr 2026 13:23:57 +0200 Message-ID: <83936.1775474637@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera wrote: > On 2026-Apr-06, vignesh C wrote: > > 2) Do you think it will be good to add a test to simulate a case where > > one of the swap_replation_files is successful and a failure after > > that. We can verify that the oid should still point to old oids: > > Hmm, it's not clear to me in which cases this can happen. Are you > thinking that the first swap_replation_files call dies because of > out-of-memory? > > Note that the really weird cases, like pg_class or mapped relations, are > directly rejected. So we don't get into the branch with > !RelFileNumberIsValid, and so on. > > I mean -- I'm not opposed to adding a test case for it. But I suspect > it's going to be somewhat annoying to write. After all, I think we'd end up testing whether transaction abort works correctly. -- Antonin Houska Web: https://www.cybertec-postgresql.com