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 1wEoxA-004RiE-2s for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 13:46:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEox9-00318j-35 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 13:46:19 +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 1wEox9-00318b-22 for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 13:46:19 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEox7-000000028dt-0yGx for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 13:46:19 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-488a88aeec9so44979615e9.2 for ; Mon, 20 Apr 2026 06:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1776692776; x=1777297576; 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=yEyflS2XyFTU1SpG1s4Kg+JN3KJ40/RU9O06eje6WZ4=; b=Sxz2s65jPfVu+3/XOIvxAeRXT67VQdW+07Bc4LNSiYWortEKnvYuNm1HNfVSyh3hKR 2XxNlosgqlw04byYmxRAxSnkOn8lAG53mp4l4m9BpZ3bAZ/rfvx7TCetVaH1/sLRFcWG JvijgjZE3GHx+87AlCXcsjHVn6U7phbd6abnw6MrThHHRYvSrZ2HCqbibCwc4g7qVcBp R1wIY3RMoIAjITP3SW605tMnL/OFI45CdbIinU+jXnc0kuxhkfwsnpuqgkt+wj12YAbF aqumyafxdOex1djLgkW8WtaJYZlOQi2lA2HW0PtfUI5jIEbHrvvJHhc+PiHfhJ6tT4JE nbyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776692776; x=1777297576; 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=yEyflS2XyFTU1SpG1s4Kg+JN3KJ40/RU9O06eje6WZ4=; b=a2Pxeq21N5xEWwREgIn+QpaAM3OVkApXqR3F/mGaqoQojPFNFuveHxoqpTffqE2O9J v2GSZHafXUjOBfzIRcNER7rVkU5rLYnnDvwKzfZH0pyZZY5iLhn9DmLd3PfssBYH7Yzi +vp7U+Z+W+TlhWWeWuuw6OSEGMzX7Eqx5ql59I7ChLmUPZBvlYG5boPjiXFXZMTyuRPc NlAsOf08yvgK7pDsU0SuVD7tTj+vMJCtW+8VujgyMxNgNdmhKspV+g4WOfIFaIjwDXYH MUv/8GNB9WgrKrKmAx759abaQX2yKZH43QJr/H8dqMpoL4aJefBnp5U/ld6dBGg9sv3d nRMw== X-Forwarded-Encrypted: i=1; AFNElJ9cFcxobhoRTucLAvEqAokkBK7RH9bdcg5u0ni6NnS7ats1F/udq9DBDWKqW4H/KNDPGb9YqV9hRpMZ1m5D@lists.postgresql.org X-Gm-Message-State: AOJu0Yza7gz8KP8ORIvrmKPlE/GGiiUwoAAr4qGLFXPswZD8Gid1dYgh EWbLRJGLbCr2brByIijLEUSa7XJYSq0PT3dEvhnlUQgPDA+w3yuB21K3l56clw+j9EQ= X-Gm-Gg: AeBDieuW0kLGKBCEkoOTYnO9AWqfP8fzj75H2D25/o6kIxM3XL47Ir7IV3nbe4UCHsl Ux4sz+JYHuUAr9Y9Ow602g3KgbsGAqm16uBgJJtcva4+JpcAyPcytUjQEMX1oKWdTshfwyxBiqz OUYFBf+jaZbnIVyTvvUwNklsvl5/nIji0zNe/q/LUPptJgh3adCJUqY6bu5ChklrvPPz/RsKlT0 gKqglY+RmZ2QWdCjzu/wBI4cIEG31Qrx1cQx2YCyhABcbRcEAiw0O2F3E2xVMIWtZO9y0KVBVVo QAThqxYOyruoclkQNGftrJmzSdJbTmj61Wg/ZrO40Fm1wun5lxYE3+4+rOcJidGH26lf319rARW Yuu5mQGrAviH32N9x5zK7yQZeARTEWvUABuCK5U7lJXCGsCxKwsrS53HOYKUvknF598Q000c1gB uwpeh2uSFVVNzax5fBp8n34ACFW450S8LVjYshuDDwGR4bvHg= X-Received: by 2002:a05:600c:1390:b0:483:709e:f238 with SMTP id 5b1f17b1804b1-488fb78ea6fmr194792185e9.29.1776692775368; Mon, 20 Apr 2026 06:46:15 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488fc0b4c85sm279126155e9.0.2026.04.20.06.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 06:46:14 -0700 (PDT) From: Antonin Houska To: Alvaro Herrera cc: Justin Pryzby , Mihail Nikalayeu , Andres Freund , Amit Kapila , Srinath Reddy Sadipiralla , Matthias van de Meent , pgsql-hackers@lists.postgresql.org, Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: Comments: In-reply-to Alvaro Herrera message dated "Mon, 20 Apr 2026 13:45:35 +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: <62069.1776692773.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Apr 2026 15:46:13 +0200 Message-ID: <62070.1776692773@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera wrote: > On 2026-Apr-20, Antonin Houska wrote: > = > > Antonin Houska wrote: > > = > > > It was discussed earlier [1] and the concerns about possibly excessi= ve > > > resource consumptions were addressed by [2]. So I think it the fix w= as just > > > forgotten. Attached here. > > = > > Sorry, I attached wrong patch. This is what I meant. > = > Yeah, I had also written the same patch a couple of days ago. > = > BTW I ran into a small problem after adding some tests in cluster.sql > that would exercise this -- that test would die more or less randomly > but frequently in CI (which it never did in my laptop) because of the > size of the snapshot, > = > ALTER TABLE ptnowner1 REPLICA IDENTITY USING INDEX ptnowner1_i_key; > REPACK (CONCURRENTLY) ptnowner1; > +ERROR: initial slot snapshot too large > +CONTEXT: REPACK decoding worker > RESET SESSION AUTHORIZATION; > = > I think the solution for this is to move cluster to a separate parallel > test. The one where it is now is a bit too crowded. Maybe the one for > compression is okay? I'll test and push if I see it passing CI. That shouldn't break anything, but I have no idea why this problem was not triggered (as far as I remember) by the stress tests we ran during development. I thought that it might be due to less frequent calls of SnapBuildPurgeOlderTxn(), which might in turn be due to less frequent checkpoints (because xl_running_xacts is typically written during checkpoi= nt), and that checkpoints may be deliberately less frequent to make regression tests run faster. However I don't immediately see related configuration in= the regression test setup. > Another obvious thing after adding tests is that the LOGIN privilege is > required, which is also quite bogus IMO. 0002 here should solve that. ok > >From b3d4158356f4914d2b0cba86eef6994c0ee50ab9 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?=3DC3=3D81lvaro=3D20Herrera?=3D > Date: Mon, 20 Apr 2026 11:38:48 +0200 > Subject: [PATCH 1/2] REPACK: do not require the user to have REPLICATION > Because there are now successful concurrent repack runs in the > regression tests, we're forced to run test_plan_advice under > wal_level=3Dreplica. Is this an attempt to disable REPACK (CONCURRENTLY)? That would require wal_level=3Dminimal (due to commit 67c20979ce). In which way does REPACK s= eem to break test_plan_advice? -- = Antonin Houska Web: https://www.cybertec-postgresql.com