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 1w26wc-000tDq-1m for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 12:21:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w26wb-009oyr-1Q for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 12:21:14 +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 1w26wb-009oyi-0H for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 12:21:13 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w26wY-000000000e3-0Ryi for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 12:21:12 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 87DEB7A028E; Mon, 16 Mar 2026 08:21:10 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Mon, 16 Mar 2026 08:21:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1773663670; x=1773750070; bh=y Y2ZKE5XyfwdO4Ze6GUGc/VOxEAa0EOS+0gEhBZ5vJM=; b=BoHmvgXkLrAnPexPU yDQSymdJxbydZb1DgfdcmEqbtKlT5cCUb4DCxWJ7gGSq3NX8uWDRjAM9C1xDKuk1 oBgDcP/Lwyqdhdb2VesfNYDrlyNIkCvlUCA2JF8CfxVivCCqRhOouG4wwGl/uo88 1yhlTzS1Vnm9Mb2RzexnYgwmaAHJfKd+jV0ShDEs2+IyD/tGvDXOgbc6QYBNYmaw mSap6Ima0e7UrKV8RcmVnnOltTzrBUA49Q2mNPlBntJSMpvdQm3IgWiA0VG6Z89w ufsrDkB8I/FOuGxo2LHuTEgm12h9hkYP95tx3qNDiZC94reV6UULGlHOGyC7W9kL uXr+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleekfeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeekfffg udffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeegpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopegrhhestgihsggvrhhtvggtrdgrthdprhgtphht thhopehmihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgtohhmpdhrtghpthhtoh epphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg pdhrtghpthhtoheprhhosgesgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Mar 2026 08:21:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1773663668; bh=zNvNih7CYFjCe7iJ7aC00u2ACp2uXTViniOJlucIzkY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=irLIeYqM3HX53WB0GBJp94d87l935he7fIYIPkb0PIcoR66li9ooDHaWFM8/xY957 WT8RYKX+zuvbFhgNKFX8RFkKC0XUxag70y/8ade7OhBpiz52cfxCLxRlPOmaXkJ3vI lhyllRx+wXgGRz5X17F0xMssMGGcw8Gge39NU/wKTTjksNE4YL7b++IAustKiMINee lkRC8hXkhDoHRvElNMW9/UzAjduE/n1yMCa/YuW2DV28MZEyLhzrTy+VnDKs8jmnfX U75I648FP/SIupA5EoeSCT7jjgf2Sag7mTTllgoaUGb6hhxudfAbGeBc0ej6vVexob JiYuXGnhpzTqg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id B01E67B; Mon, 16 Mar 2026 13:21:08 +0100 (CET) Date: Mon, 16 Mar 2026 13:21:08 +0100 From: Alvaro Herrera To: Antonin Houska Cc: Mihail Nikalayeu , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202603161220.7nv6whwu33hi@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <22068.1773652380@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Mar-16, Antonin Houska wrote: > One more problem related to the replication slot is that, due to the call of > CheckSlotPermissions() in setup_logical_decoding(), REPLICATION privilege is > required for REPACK (CONCURRENTLY) to run. That's not too user-friendly. > > I think the reason to require the REPLICATION privilege is that, in generic > case, the output plugin can access data of any table in the database. However > REPACK uses one particular plugin and that plugin only decodes changes of one > particular table. Thus I think we don't really need to call > CheckSlotPermissions(). Do I seem to miss something? Yeah, I don't think it makes sense to require REPLICATION privilege to run REPACK. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Oh, great altar of passive entertainment, bestow upon me thy discordant images at such speed as to render linear thought impossible" (Calvin a la TV)