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 1vfN4m-001P6P-28 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jan 2026 18:55:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vfN4j-001WdQ-2H for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jan 2026 18:55:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vfN4j-001WdI-0s for pgsql-hackers@lists.postgresql.org; Mon, 12 Jan 2026 18:55:37 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vfN4g-0004B3-1a for pgsql-hackers@lists.postgresql.org; Mon, 12 Jan 2026 18:55:36 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-382fd45a1feso53166671fa.0 for ; Mon, 12 Jan 2026 10:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768244133; x=1768848933; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=thRaJbtU41RYTaNgHH95Ukdmbr4UTMtOBnzItSANZcU=; b=ZQYdc2/Wq93+yzvbYkQOj90HbVnFpOgAoNDfqlLoMVFi4R+8BXX4NzITFY3+PKZovJ 20MLJMk31CtUCzL9HXQvfl5CrC0pMAuDnlNJKSHbh32ccm7uvrt6yQYfx2FVN+iZr4Sl HrSMzFB1zcfYHSJFa8OtREqC8XvOW/qQIodtDOmyyGbjFIJIq85qRs3fY7U8ZWq/40J6 h9YWElw5Uxux8UCFR/WmqUaRMArOkIGGNmtf6jpRgvA5u1pGVYo3b037rDbrvJbVb5V0 om0u1xwRAC7Tj9q21IplQgungX9Qhs3cf3AsOABz8aJJaRzK604JdBzfTUQ7vd6k927Z dP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768244133; x=1768848933; h=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=thRaJbtU41RYTaNgHH95Ukdmbr4UTMtOBnzItSANZcU=; b=FXyz8dRH86V5UuL/OF1LJHeO2o3dbSZd9W6Ui5ZPDwy73I9Z+jGEG2oocZtBfmzHL7 8m8CgyEwbNXQgu6F+FiIpi3z4P7lvc8p3kL/6cxyfqMSsCFPBg0AXApVsUO0lLzCpI/j bDS29F5FHzhZDB0R60q4GpPuaqu3zPcFcggSKFSHg2kayRGvP+citAbc0DFfBWB1Kx3K mqYDp661F1I2WJSVasppYFGZGt6ohnTaOPThUxT9PyqltQ0XWGGxFwTY9qwhXTS8zE06 x6i560FfXGaAW7KvzDcBI2pg2ah+JurLlyR+7oJbfh6aUyufLYZ5DdOu1ACnl7Vqxcpw xGMQ== X-Forwarded-Encrypted: i=1; AJvYcCX5qHLYK68759jMhHafqrz4y8jZIyvdj+rMT+OSmuRyCw70EhATinT4jht8iknw5BuRK8LFLjs2gbr7jEWt@lists.postgresql.org X-Gm-Message-State: AOJu0Yx8h7OU6ol7K0mk51fbcp/S9S0bNTh0KBcqoDMRCnXtlAFfs+Za YWFaF2CjGKLJFR1gjJuv0Acf97gn8zQQynhRm9S98ZppVOI4LtDCO3PKrgdTjdv7JMXKdEHSkUS axgXfeoW6wIflnPCKEzIpCzq5+6iwm7g= X-Gm-Gg: AY/fxX7+szPcjFs+EBnSCGnc//wTBNiQ/PaKAG0JIj4pbvVIMzmT8u6CjSX/sD/JJz4 R6LU1PI8Bsw9PebbAqSS+4KRkZ0ENeoMEOWnF1Zp1t8XEkCYiG/fRjjuLFAG1XY1MY+m6IZ8tt7 I4nIHcNn6HPGsCReYXUH2Jy4X+gEQr5y2ZIgtq8NvKhkYjjgXmMBQfVWiCIgL7pt0ufQt7bHXc/ rSrjywVDoUXzyG3r5CiZCrEChAI3IzuWiBwt4AZY8BoNXE2wX6oVWGpBDHz+4jYbUWFagM1mKyD eSRxi0S4xV6l8GM1Tj8EAZ3mw1KWwRqNs9PeMK7EJ568oHPEAF+LAr2cyQ== X-Received: by 2002:a2e:be0f:0:b0:383:86c:547b with SMTP id 38308e7fff4ca-38350bdc48bmr826681fa.14.1768244133027; Mon, 12 Jan 2026 10:55:33 -0800 (PST) MIME-Version: 1.0 References: <202512151349.vlq3mpfniyk3@alvherre.pgsql> <11247.1767609087@localhost> <11558.1767609632@localhost> <141054.1767891540@localhost> <137668.1768235610@localhost> In-Reply-To: From: Mihail Nikalayeu Date: Mon, 12 Jan 2026 21:54:56 +0300 X-Gm-Features: AZwV_Qi0TNwBmCW7kYRACOLthMHurCtGv7QLu5VX1C9B538HVpp2eRBLMMgK9Ek Message-ID: Subject: Re: Adding REPACK [concurrently] To: Antonin Houska Cc: Alvaro Herrera , Pg Hackers , Robert Treat Content-Type: multipart/alternative; boundary="0000000000006ce7920648356bfe" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006ce7920648356bfe Content-Type: text/plain; charset="UTF-8" Also, there are some crashes of stress tests for v30 (for both single snapshot and multiple snapshot versions). --------------------- Looks like something is leaking, but not sure. https://cirrus-ci.com/task/5577209672368128?logs=test_world#L277 (multiple snapshots) https://cirrus-ci.com/task/6439044873191424 (without multiple snapshots) [17:49:07.251] # Failed test 'concurrent operations with REINDEX/CREATE INDEX CONCURRENTLY stderr /(?^:^$)/' [17:49:07.251] # at /tmp/cirrus-ci-build/contrib/amcheck/t/ 007_repack_concurrently.pl line 56. [17:49:07.251] # 'pgbench: error: client 0 script 0 aborted in command 6 query 0: ERROR: out of background worker slots [17:49:07.251] # HINT: You might need to increase "max_worker_processes". [17:49:07.251] # pgbench: error: Run was aborted due to an error in thread 0 ------------------- This one showed something goes wrong, the sum of the table is broken. It may be 0 because non-MVCC safe, but I checked the logs: 2026-01-12 18:41:11.656 UTC client backend[76247] 007_repack_concurrently.pl LOG: statement: SELECT (490588) / 0; And also backend[54349] 007_repack_concurrently.pl ERROR: could not create unique index "tbl_pkey_repacknew" 2026-01-12 18:41:12.477 UTC client backend[54349] 007_repack_concurrently.pl DETAIL: Key (i)=(942) is duplicated. 2026-01-12 18:41:12.477 UTC client backend[54349] 007_repack_concurrently.pl STATEMENT: REPACK (CONCURRENTLY) tbl; https://cirrus-ci.com/task/4521496594350080 (single snapshot version) https://cirrus-ci.com/task/6157569896480768 (single snapshot version) [18:36:17.466] # at /Users/admin/pgsql/contrib/amcheck/t/ 007_repack_concurrently.pl line 56. [18:36:17.466] # 'pgbench: error: client 21 script 0 aborted in command 31 query 0: ERROR: division by zero [18:36:17.466] # pgbench: error: Run was aborted due to an error in thread 2 --------------------- https://cirrus-ci.com/task/5682762788634624 (multiple snapshots) Failed test 'concurrent operations with REINDEX/CREATE INDEX CONCURRENTLY stderr /(?^:^$)/' [18:02:06.938] # at t/007_repack_concurrently.pl line 56. [18:02:06.938] # 'pgbench: error: client 6 aborted in command 4 (SQL) of script 0; perhaps the backend died while processing [18:02:06.938] # pgbench: error: Run was aborted due to an error in thread 0 [18:02:06.938] # WARNING: terminating connection because of crash of another server process Best regards, Mikhail. --0000000000006ce7920648356bfe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also, there are some crashes of stress tests for v30 (for = both single snapshot and multiple snapshot versions).

--------------= -------

Looks like something is leaking, but not sure.

https://cirrus-ci.com/task/5577209672368128?logs=3Dtest_worl= d#L277 (multiple snapshots)
https://cirrus-ci.com/task/6439044873191424 (without m= ultiple snapshots)

[17:49:07.251] # =C2=A0 Failed te= st 'concurrent operations with REINDEX/CREATE INDEX CONCURRENTLY stderr= /(?^:^$)/'
[17:49:07.251] # =C2=A0 at /tmp/cirrus-ci-build/contrib/= amcheck/t/007_repack_concurre= ntly.pl line 56.
[17:49:07.251] # =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 'pgbench: error: client 0 script 0 aborted= in command 6 query 0: ERROR: =C2=A0out of background worker slots
[17:4= 9:07.251] # HINT: =C2=A0You might need to increase "max_worker_process= es".
[17:49:07.251] # pgbench: error: Run was aborted due to an err= or in thread 0

-------------------

<= /div>
This one showed something goes wrong, the sum of the table is bro= ken. It may be 0 because non-MVCC safe, but I checked the logs:
<= br>
2026-01-12 18:41:11.656 UTC client backend[76247] 007_repack_concurrently.pl LOG: =C2= =A0statement: SELECT (490588) / 0;

And also

backend[54349] 007_repack_concurrently.pl ERROR: =C2=A0could not create uniqu= e index "tbl_pkey_repacknew"
2026-01-12 18:41:12.477 UTC clien= t backend[54349] 007_repack_c= oncurrently.pl DETAIL: =C2=A0Key (i)=3D(942) is duplicated.
2026-01-= 12 18:41:12.477 UTC client backend[54349] 007_repack_concurrently.pl STATEMENT: =C2=A0REPACK (CONCUR= RENTLY) tbl;


[18:36:17.466] # =C2=A0 at /Users/admin/pg= sql/contrib/amcheck/t/007_rep= ack_concurrently.pl line 56.
[18:36:17.466] # =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'pgbench: error: client 21 sc= ript 0 aborted in command 31 query 0: ERROR: =C2=A0division by zero
[18:= 36:17.466] # pgbench: error: Run was aborted due to an error in thread 2

---------------------


=C2= =A0Failed test 'concurrent operations with REINDEX/CREATE INDEX CONCURR= ENTLY stderr /(?^:^$)/'
[18:02:06.938] # =C2=A0 at t/007_repack_concurrently.pl line 56.
[= 18:02:06.938] # =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 'pgbench: error: client 6 aborted in command 4 (SQL) of script 0; p= erhaps the backend died while processing
[18:02:06.938] # pgbench: error= : Run was aborted due to an error in thread 0
[18:02:06.938] # WARNING: = =C2=A0terminating connection because of crash of another server process

Best regards,
Mikhail.
--0000000000006ce7920648356bfe--