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 1w9QN6-001QEl-2u for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 16:30:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9QN5-003u0K-0k for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2026 16:30:47 +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 1w9QN4-003u07-2v for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 16:30:47 +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 1w9QN2-00000000klR-0Wzo for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2026 16:30:46 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so4492245e9.0 for ; Sun, 05 Apr 2026 09:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775406643; x=1776011443; 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=mlLRt2mcYGT3lUDdNQKIsYwN7zJ1sipoZWMTOU5PO1g=; b=IS2fP1DeFvDaplx2HSE6SLnCMyN22IeGmT+s+31QdqGgUh8s7jtR9UwvBNuaj6M4wY tX4t5JO+jt3oNODON0GBe3qXiDBiUlYwKG7DdAHSM+rVRo2cyPJqmireowlVIEJ/emZe pmWrbuFtGNtvKv2IxDppW4VfFadRjgjmMAxcP1CQqEY+aRpvIFY1kf2H033FWVUTw3Ty hRfrhhGz624FnZIhp/lKcqqgBfHoRzh99kLZGepFgXdy329LqWehdud1wUkfSkosUQwJ Pz2fb7k/vdb0/XE4xR6jMINB4ekoxcLbdJ7N/8n6pQoOipfOak2ORYKEswACknTMaro4 M5JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775406643; x=1776011443; 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=mlLRt2mcYGT3lUDdNQKIsYwN7zJ1sipoZWMTOU5PO1g=; b=T+SCHj53cJ2Xs60+Ad12yyFZB4Lzd5YyafGz6pQuqFNNaHPv8xR24hBAiWy8YpZAW1 mB0iKoseZsTtZkXHijpawJEfoEC9NorG09zwUtOILNvBn/yl+GsQ+PjQR3mlUYOK1SK7 01Fvjz8pamB9mFay0pLLTPwHPy+nWDYHPvE4cBmz56c/izdEcjgVI0/B7KaGs2kvQ3cD 0eYLz7bCRh3CjWK18hgiem7AP0zvd+1oYfkC0wzuNmZAcuRb7O2LY1Us35Hr0MhMghKJ QZ2c2PL5ZTm0vZn3WKYcavP+qreov+MCeLvmvNu+msvCp2mslI0SigPCV178imzOy5ca GJgw== X-Forwarded-Encrypted: i=1; AJvYcCX1W2bRxT4bMxaStybXWYC1Grsz6gT7PRLyP8vAWxKElLJKbt47Siq3Y+kIOMG5ozT3Unog8nyYL+xRcjFo@lists.postgresql.org X-Gm-Message-State: AOJu0YyBOz7VptZs+0Hn+iWjiKtTBHwIqdAOtpZUl1O8x3SQqDtQFI7E Rrh0USdpVmgWd2ozpVBkdvFEB//jhzITCopyivCWoysdTKAI2oDousdbGtXynaDc54o= X-Gm-Gg: AeBDievlVJZ48t4LJg0MiJxHzc7oq927o7nkqFUyBR1DGDRQxXtdwdtVSVLB583b24u loFrXh9mPd2UjkTdaSH4fiqWajoQchkc0klRTglReWvB2GjLkJuzy8GjfU3WbQE2eb6kXraBWKo ZYta80HGznA8P3HWyougNufK3OCrup8PZuHwSIL82EobL4NDGFDlndKuJyASzBYxMy+oiixTiHg F139z1j4pI4qBj/d0j/D+3m1orBNnT3snb2qF8ZycgaWcNjYWT6prv5cs4UTuuIATJceXsd9pRJ SDgpWWRqQF7+rdiw5HHELqcvDpQSCOAtykuF0muhwK3Ij0PRGVpL2DF8VBseJ8pb1l7cN8mhoWw BzcN0QW7zQu/NAvVSRcXhlicNTTSISLQXXLGgsCuxl9xBEOtpII2q5x6eidIEVrcIfpbn/EqroS VI9SIl//Px9vkD+yxublWeq6f2DU9T6kZeVCWYi3IV/Hbd0Tk= X-Received: by 2002:a05:600c:3b1e:b0:486:ff92:63e5 with SMTP id 5b1f17b1804b1-488996ced63mr151429185e9.6.1775406642730; Sun, 05 Apr 2026 09:30:42 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488983db4fbsm70624505e9.13.2026.04.05.09.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Apr 2026 09:30:42 -0700 (PDT) From: Antonin Houska To: Alvaro Herrera cc: Srinath Reddy Sadipiralla , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <202604051143.f5x6elmc7iut@alvherre.pgsql> References: <202604051143.f5x6elmc7iut@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Sun, 05 Apr 2026 13:50:12 +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: <24164.1775406641.1@localhost> Date: Sun, 05 Apr 2026 18:30:41 +0200 Message-ID: <24165.1775406641@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera wrote: > On 2026-Apr-05, Antonin Houska wrote: > > > ok, maybe just skip the whole cleanup in that special case. > > Hmm, should we make this test only in the db_specific case? Doing it > unconditionally makes me a bit nervous (maybe because I don't fully > understand historic snapshot building). I thought about adding Assert(db_specific) in front of the new return statement. So what you suggest makes sense to me. As far as I understand, the xl_running_xacts record is not directly involved in the snapshot build. Rather, the list of XIDs for snapshots is created and updated by processing COMMIT and ABORT records. -- Antonin Houska Web: https://www.cybertec-postgresql.com