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 1wEjM9-004L8J-1j for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 07:47:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEjM7-001Ihy-2f for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 07:47:43 +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 1wEjM7-001Ihq-1j for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 07:47:43 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEjM5-00000001tFI-0ewK for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 07:47:42 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-488e1a8ac40so36740585e9.2 for ; Mon, 20 Apr 2026 00:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1776671258; x=1777276058; darn=lists.postgresql.org; h=message-id:date:mime-version:comments:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=R2ey2oNxEQN8d/eS/eiQSewb92rHyE935cubz9ZCq6M=; b=Ss8cC8aVgW0erZpJdw5fgawZ8IfX9XasM+E4+k0mUXTS+Sjo/fNd7UQCLxBiafmv1g 4XXxMNMce+y3z1brG6pF9SYprQS6x8L4BV5eGTp9U3YC3sPHqC0sQXDsqZ6e5fYHFYEm lVZxQ2vY5CJAOd9FDsnje4N8xazAWbM3iJBkyIxPK/1CF8zkJybTzLYA+pAmJ5rj/3u0 vrcO2cz5tsfgvHp/a2GLd1+9aIV/lwvv2PvzgpbRIj9vsMpSvmPKD10n+Y8rxkR5cBPU zwKwSkGtymtn/wcWi6TEa6RvfcNChTvY0/Lgn9AQMMxZ7NHbWPGFAKEboqjf7E+TMmiy 9peQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776671258; x=1777276058; h=message-id:date: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=R2ey2oNxEQN8d/eS/eiQSewb92rHyE935cubz9ZCq6M=; b=oxdSge6NAZ6PBTKb0PyBKWG1ARI6jctNPQrM1EscLmBqZ6ZB7fems+kxPGQ/qtLz1M zEz4qefqxgLHvQh61TdJUnIe4R49pRFdBNo/AoUw81ViulZ62kMzhF9z5qL/3qyG+meH cLm/yjqklCCa56LVgERUYjxvRWGEpV1+9AqtrPeLFGeB96lHeKkr4uusXZbvBk80lxuJ bWIxFe0qWMJEkGvhJUm2nZ5E51MkrX/v2LBv2akw+C8T6KFiyTev5Wsg/MVSDoscAHGU XYSBeyHz3ZoPBTgFtaoZRRtHkSmFBrtqdd54BIGOY2ILXGUtwz8O0Voc9lxS5xPJ3nuK ApdQ== X-Forwarded-Encrypted: i=1; AFNElJ86OcjmOv4q+7jd+nHlx7nyeVDxrg+4WikJ95Nq6GutSpCAZ95veVDdYgP1gtyWkJ1+E255lgEfuhB4vrdT@lists.postgresql.org X-Gm-Message-State: AOJu0YwKOs1GfHBD8LPDXWmAsUlF9qJkMEzndlntJ0DVXjExCvU3mpP1 ++LGCxq9NmESbDA8NbQgf24QBj6J2Vm/98aqpycGqTreUuLheCCNj+GUBl6TbnTAuQE= X-Gm-Gg: AeBDiet9I2q6RcG2Ouyre8stgI48jsu5u7IXdcr0Bsvt8ajUKYFw+0tmnRb356GmG6z H140OxAY2WkpaGSQ1vddMEXmViEG9LTlMdVFvPtUfnnZdwAdIg2L2XQH45XBY8K6Ylulrm14e/T EanUFIhc/zNhJ3veVLJ0ZKhEqGx4uGTtEDI4G7yC/vDaXFoQtyjQ2z7oppr+bDh/p01KIRa9w4E qelZgrmETRZ4qnd58AY5MSSKqeb2dxWxIg9zUf5A+/eEf1Y3U5YVL+OAtZ0DLzGaFXZp1IHnPbg hY8soslTND0b9IlZ5S4DDHnmo/KXhkkwwL7X0fGyc9v+DT7jFmx4tljOwFEhL7WQL9YsmbNm7mw mbOq0QOQdAAwiVss+aGUrtKjYjtCThXXWt9BYSy1ifJykkChfxVkkAr0H8zMbhxbw1h3xHOheT/ 7GsB+pDdPyieEr8Q1cUe9Mtj57HggVFnb1Jy3kf/NZIoPGptU= X-Received: by 2002:a05:600c:a416:b0:488:e7e4:8425 with SMTP id 5b1f17b1804b1-488fb787674mr139511115e9.23.1776671258203; Mon, 20 Apr 2026 00:47:38 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488fb7b2716sm85523365e9.30.2026.04.20.00.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 00:47:37 -0700 (PDT) From: Antonin Houska To: Justin Pryzby Cc: Mihail Nikalayeu , Andres Freund , Amit Kapila , Alvaro Herrera , Srinath Reddy Sadipiralla , Matthias van de Meent , pgsql-hackers@lists.postgresql.org, Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <22189.1776671085@localhost> References: <9539.1775724194@localhost> <112208.1776173876@localhost> <25514.1776264611@localhost> <38385.1776277704@localhost> <22189.1776671085@localhost> Comments: In-reply-to Antonin Houska message dated "Mon, 20 Apr 2026 09:44:45 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Mon, 20 Apr 2026 09:47:36 +0200 Message-ID: <22338.1776671256@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Antonin Houska wrote: > It was discussed earlier [1] and the concerns about possibly excessive > resource consumptions were addressed by [2]. So I think it the fix was just > forgotten. Attached here. Sorry, I attached wrong patch. This is what I meant. -- Antonin Houska Web: https://www.cybertec-postgresql.com --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Do-not-check-the-REPLICATION-attribute-when-running-.patch From b4d63a8a4e3f0061b48abd6526769a4db56edac8 Mon Sep 17 00:00:00 2001 From: Antonin Houska Date: Mon, 20 Apr 2026 09:20:36 +0200 Subject: [PATCH] Do not check the REPLICATION attribute when running REPACK. Although REPACK (CONCURRENTLY) uses replication slots, there is no concern that the slot will leak data of other users because the MAINTAIN privilege on the table is required anyway. The REPLICATION attribute is also not needed to prevent REPACK from stealing slots from logical replication, since commit e76d8c749c introduces a limit on the maximum number of slots used by REPACK. --- src/backend/commands/repack_worker.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/commands/repack_worker.c b/src/backend/commands/repack_worker.c index b17edd771e2..e4a4860805b 100644 --- a/src/backend/commands/repack_worker.c +++ b/src/backend/commands/repack_worker.c @@ -214,7 +214,6 @@ repack_setup_logical_decoding(Oid relid) /* * Make sure we can use logical decoding. */ - CheckSlotPermissions(); CheckLogicalDecodingRequirements(true); /* -- 2.47.3 --=-=-=--