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 1vmzmH-0014Yc-1e for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Feb 2026 19:40:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vmzmG-0010LO-23 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Feb 2026 19:40:04 +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 1vmzmG-0010LG-0z for pgsql-hackers@lists.postgresql.org; Mon, 02 Feb 2026 19:40:04 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vmzmD-00000000iQq-2BUV for pgsql-hackers@lists.postgresql.org; Mon, 02 Feb 2026 19:40:03 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-435a517be33so2909107f8f.0 for ; Mon, 02 Feb 2026 11:40:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1770061200; x=1770666000; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=afBvdRDIFEqSDfYwk3wxAT8scSVjgLIWKq6Wnaks4jM=; b=BU8BlQ+3tFVZgv3Lm4+4hel0wGO2zcllTwJtI8STQaHJMYycMJsSGWAVzr7XOoBc60 arvVfGnmprS1YD3wFI0ZFFKHs7IMRx1NYzQYF6PeNk32qtURg3fVuCMBKaz86weheguv 2yNpCKtQ8a4zre4hX/IxwOUUBS1eGo5Pqul6t9WctyMvdsIWh1OZFSP7okDqGVqFx9Bp NbzrD9UH1LXpNVZYHxNWVPdaaYtAm2OYmBos4oY7/kpCNiUgGh7ZV0SHJe6oJ/gdateq 7YhjBN1QzO9XGAgRerNAhJeHRGGh4pNhZtBHjV6a6o+3qLADBWCtvUqS3v6f5HGjzgB0 eWPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770061200; x=1770666000; h=message-id:date:content-transfer-encoding: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=afBvdRDIFEqSDfYwk3wxAT8scSVjgLIWKq6Wnaks4jM=; b=aaI1Omn6SXRKGn91ZLBc9biZFuw63dbC0quTT/2N9eGE5vxTlbhfKLMlK5mUJYiNPk U+oWuvB26tN97ZPslTSqaWNnYKejg/vbo6VPQD/UnS9KfDfDlm1neWVSQc+s4fxZ7zAh y1RiqGanIHlfadaNyQIfSEIctTuwhP7dFUo+PM0Q+xu8XAFCrhj5F5Y5rsfW6fkgNV73 jgKpUvWkS6yTxQFm/n6mGpTkOaQ4bJF9G3kQKqawMSvuyrlrcc/ubtw2nDKM2rHgwzpq qTLU4SfkVF/UWHRpecmSBvlc8v3KJ/JU8vdqPAmi82zGPQJm1RSQxavQieG0+bv89w1b mpQw== X-Forwarded-Encrypted: i=1; AJvYcCVnnbpKxcLbxJMTmwAK7kk78oCuQVceHdSvhqGk+Xp+0WQE9MQlMqRiUaT27/F1N45mSyE3z/5HT38xEOiR@lists.postgresql.org X-Gm-Message-State: AOJu0YxesY+iSSrhODvfn4PGv8dSB3//094HUvBm71aEyiigYwe6PAkg BirOIKzojnMqtpY5miXq0l+6kw3uSzeZwtMF+nMjHlUNNtxAmoMoMbElpyJO1JoPNW4= X-Gm-Gg: AZuq6aLxjwzdHN/2+uskD54dvA8Rmij9A02OPDwQjtB+lq4v+nXdE99ZnkWGHB8+qZu eP+aQQ1Pn6RLCvyDCLaSq/u+7RT8/TtsoGXmBlehesY7ibWr2adODpOv3OO0qfDxCee7kqIqwtz 5Y48Me7oHBFL7PmwkjbOvIXPvalmt7TzAI+e1dD65r1wJhSaGj7+BjTXKIzTlJk+vis99Bu5cjx GlKZbjd5KnfD3vdmFs87tKJ4EdsHYO3dctIETcIFoQYmHqfpg37cdNMFTGaetKh0tZTEB0vnLjr PCXWnpToz8QkU+FMgdtkjZISWylabETOOlGy7fbuKy9wPK9+dRVw/nbyanXobS2UFVvLgclbqOc yJWFpRGYuVcE2sIkt/7/DWJ6sWjINsV9c+cnHdIZWYL8Lb3yVL93lWEFe6XuD0m3HqhcQFONT7X yU4uPZPvjpIv2lIITCPH45/9DfhR+pOtMaDbI= X-Received: by 2002:a05:600c:3155:b0:47e:e9bf:dd8a with SMTP id 5b1f17b1804b1-482db4b5a1dmr156871485e9.37.1770061200082; Mon, 02 Feb 2026 11:40:00 -0800 (PST) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4830513730esm9554125e9.14.2026.02.02.11.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 11:39:59 -0800 (PST) From: Antonin Houska To: Mihail Nikalayeu cc: Alvaro Herrera , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202512151349.vlq3mpfniyk3@alvherre.pgsql> <11247.1767609087@localhost> <11558.1767609632@localhost> <141054.1767891540@localhost> <137668.1768235610@localhost> <74802.1769071060@localhost> <3901.1769412880@localhost> <88003.1769511456@localhost> <57210.1769801636@localhost> <8029.1770024929@localhost> Comments: In-reply-to Mihail Nikalayeu message dated "Mon, 02 Feb 2026 11:04:45 +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: <58249.1770061199.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 02 Feb 2026 20:39:59 +0100 Message-ID: <58250.1770061199@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mihail Nikalayeu wrote: > > I think it *is* related. My earlier patch version, which used the > > PROC_IN_VACUUM flag improperly [1] was also causing visibility issues.= Please > > let me know if you manage to reproduce the issue with v32. > = > Will try. Just to highlight - first error happened on v31 *without* PROC= _IN_REPACK. > Second error had PROC_IN_REPACK code, but it wasn't executed (flag wasn'= t set) - that's why I think it is not related. ok, v31 is the one that uses PROC_IN_VACUUM incorrectly. > > I'm confused by hearing a complaint about complexity of code that I ha= ven't > > posted yet. And I don't understand the relationship to "replication lo= gic": > > REPACK (CONCURRENTLY) tries to avoid decoding of data changes in the *= new* > > (transient) relation anyway. > = > I am not about complexity of code, but more about complexity of approach= (introducing new things like cache-only relations). > "Replication logic" - is about the fact you mentioned that such a relati= on is going to be replicated to standby (as result, some > replication-related code is affected too, probably standby promotion als= o). I thought you mean logical replication. Regarding streaming replication, I mentioned it rather for the record. I need to check details to see if it requires special attention. > Compared to the PROC_IN_REPACK flag - it feels overly complicated for me= . > PROC_IN_REPACK is the simplest thing here - just exclude XID from data-h= orizon, but keep it in catalog. That's all. My preference is to avoid hacking procarray.c if a reasonable alternative exists. > Also, maybe I sound a little bit rude, sorry, it is just because of the = language barrier. No, that's fine. Since we've met at pgconf.eu, I think you're not a bad gu= y :-) Technical discussions are mostly about problems, so they tend to sound negative as such. -- = Antonin Houska Web: https://www.cybertec-postgresql.com