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 1wJtI8-000OHv-1y for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 13:24:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJtI6-007JLE-1o for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 13:24:54 +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 1wJtI6-007JL6-0m for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 13:24:54 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wJtI3-00000000SLR-33gc for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 13:24:53 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-488d2079582so44692845e9.2 for ; Mon, 04 May 2026 06:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1777901090; x=1778505890; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jXR2i01qwMfFRnzPHfuo2msjUqL5UkU/Fqmt3AQ+VAY=; b=ZOnNoNaDRTqlt/gjVxkX7Y8teAJbR+zHBuHh23urogPyKQC5Z1mslirvw3eJya/xLT 5UxqgwSjqdVoVtZ4cfZy04IIG3cLNbd8K+3+LLyvWhBhpNYA8UhKmUsD/EgmNF0pIBrY qXq8NiuOvyBLn2ZH1b+FdnxHBto/ao5XyoX8o1lvgpXR8RhNlEFUp/dlnaWeJEJ5MNuP P5Xg31j0PrkrYyql/s2QPeG53cb4KLJFbpA2TXMd5f41n9MFbsyBGez+mqqjEenWPEdA CBBH4IUFz1c1p/Cr2rvM+Slo+Vk0bpwHUnWv3GBdMXLzgEqW2GULF3aGk/Q0blAuwZP1 ETRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777901090; x=1778505890; h=message-id:date:content-transfer-encoding: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=jXR2i01qwMfFRnzPHfuo2msjUqL5UkU/Fqmt3AQ+VAY=; b=XckSl06qRn4bCZvbpE9XmCHF68pWXCiDYLsMx9x8LLEsj/XbRad0V0wuhEw4Matlit YVyJiej2iylqiNHmGCuTRQQDcX1Cu2zWZROp4MWQvyYDjidgiM5qYqEXXcVATyxgW6Qi sTVJae23Psgf2g2MSRPUs60EtXWnx0/ksL7JvfqkWN7Op1tVo9RA9GfDWtiScLqFm9nF sGdobccSr11dMRrPyFTYcjoyTbca2LXyUX2pmQStP1dR5l9BPCgCp6o5GmqTwpiqRytZ IT4APxR8ZL+7fMG8uFzfS11zihmQOIIhqcr2r5/ytNwj1rNM5oAidFczZHMjQsXycOMV /zYA== X-Forwarded-Encrypted: i=1; AFNElJ+8oT0N5h/lcX9+BSCU+3jnWLJ6vzeRZiGJCSq+96O07Or69yNfyPXpo2vmTuWof0wUWVSVImSj8yqbpEHF@lists.postgresql.org X-Gm-Message-State: AOJu0YzcPPPkap4FK64O2fuYQGHIsw9ySB1vcBxeeMP1p1TKMRciY7Ol wX6UbVRD0Ix6FI+FBHcoqCCeIx825Lylt/aT8TrhwE+mHejTLiZ8S4qCnCyn3WnPLLk= X-Gm-Gg: AeBDiesatNkwXaWgtyPpS6I9nm2IbLwptaoeaGuqjqg59pI3uPPXzYw4Mr65QgJS0uv Xd2OxHYUY0horGpy+U5QFdmuiQGJrdtSXQTSDUCXad0gEXZ4Rd98SRe7KKnoAQn5+8FJqSOvmnX ppb2QtX7UfmgYz0ZRdG9HUnnkmVJj5QJ40ekRuAnnmF9LqOicJO2SXT0FqioPAcikEpIBvAQaVl 5cZdPZ2tHq6BtQrhGdbetZvsmClxPM3eiLU29dpsV34hAniGpcXYHfz0KC68HjQ3iJ+5yR6HxcN 2MZDhhjqp9WL9t5ZT+DsBBjR9pRHhZR4s6kC9AKK0q6DbLTYCLLqx3ZAU/sZNwwqtDVaO3F09pz yWMygxU31B+2J2lYIqqWTZeLahGQOUsYV4r0FDqKYe7DNFftHFohaTrkDIsC5fu9p8oBMJXEOct v+sHltRc+Na0Z9nNHamaLqnVzG7omEha4mDVPxA4QI+4CbJVI= X-Received: by 2002:a05:600c:e41a:b0:48a:592c:e642 with SMTP id 5b1f17b1804b1-48a9865f799mr131235045e9.18.1777901090578; Mon, 04 May 2026 06:24:50 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a8feb1e49sm81030435e9.13.2026.05.04.06.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 06:24:50 -0700 (PDT) From: Antonin Houska To: Mihail Nikalayeu cc: Amit Kapila , Andres Freund , Alvaro Herrera , Srinath Reddy Sadipiralla , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202604071230.b5axxf3qna3m@alvherre.pgsql> <227677.1775576304@localhost> Comments: In-reply-to Mihail Nikalayeu message dated "Thu, 30 Apr 2026 13:24:41 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 04 May 2026 15:24:49 +0200 Message-ID: <85813.1777901089@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mihail Nikalayeu wrote: > On Mon, Apr 27, 2026 at 6:25=E2=80=AFAM Amit Kapila wrote: > > Alvaro, others, what is your take on this? >=20 > I agree with you here - we should AT LEAST make that an ERROR instead > of an assert and also check it during cache access (not only during > the scan because of cache misses). > But I think it will still be fragile in case of some extensions installed. >=20 > Anyway... We also have an issue with correctness right now. >=20 > I took the old stress test from [0] (the first two) and it fails now, > even with the fix from [1] ("Possible premature SNAPBUILD_CONSISTENT > with DB-specific running_xacts"). >=20 > It looks like [1] fixes 008_repack_concurrently.pl, but > 007_repack_concurrently.pl fails anyway, including >=20 > pgbench: error: client 1 script 0 aborted in command 10 query 0: > ERROR: could not create unique index "tbl_pkey_repacknew" > # DETAIL: Key (i)=3D(383) is duplicated. > and > 'pgbench: error: pgbench:client 23 script 0 aborted in command 31 > query 0: ERROR: division by zero >=20 > Last one is not MVCC-related; you can see from the logs that it > performs something like SELECT (509063) / 0 when the table sum > changes. >=20 > Setting need_shared_catalogs =3D true make them pass, so something is > wrong with its correctness. Thanks for testing again. Whether we keep the "database specific slots" or not, it'd be good to know what exactly the reason of these errors is. I won= der if the feature just exposes a problem that remains shadowed otherwise, due = to the contention on replication slot. I'm going to investigate. --=20 Antonin Houska Web: https://www.cybertec-postgresql.com