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 1x3vEs-006lDT-1S for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2026 12:47:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x3vEr-006vSI-0H for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2026 12:47:49 +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 1x3vEq-006vSA-1I for pgsql-hackers@lists.postgresql.org; Tue, 08 Sep 2026 12:47:48 +0000 Received: from flow-a2-smtp.messagingengine.com ([103.168.172.137]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x3vEo-00000004b1r-1r7k for pgsql-hackers@postgresql.org; Tue, 08 Sep 2026 12:47:47 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailflow.phl.internal (Postfix) with ESMTP id F37171380115; Tue, 8 Sep 2026 08:47:44 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 08 Sep 2026 08:47:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1788871664; x= 1788878864; bh=wZV+AgLjpx7hMqac1zgAEG43CxyasR2pMflQr3YkaJo=; b=f lBMauVA2cWUwn05mVfX4Fr4WJ80SmlPFtBa9sWdFB4BBXOBLnMzV1tl3uwkuQ8bL BC3AJlvX10EJF4xzVCcKfE11svptKS2ASFNbr8P8Y05ASOS5r3/sT61+U/cb7gjy 8WkJ+NvbxBp3fI0zmuGcksV8DSoYnuBeoUL0XWf/SrLZ8WkIQsIoPzTaDisgUmMO HPzsUXHxWlKeMUr/uVgpYx4yBrU4fjBCe8i4gNV10SX2FJ/V6vA84Ph8i4yQAOye drHU5wpvHRyvxcEzyzbQPlHL9ptfpBmcRAwBGw2wBCHVTc70wTddDmjQvVo73clJ Pyw6GWW0kUVBXDc9mKVLQ== 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=1788871664; x=1788878864; bh=w ZV+AgLjpx7hMqac1zgAEG43CxyasR2pMflQr3YkaJo=; b=W3FhYeKe2tPaViS0M F5sMj1RsemfeahrmZ09rbuIHcpIOI8khFNqpO0zyAWHbs9TUeFmlgtMD83Rze4KX oUMUYh64tOeaAF1KYHwbyAfqYiY1ft5rJp5Y4oWFYlFuwFmeTMtuU4ppJvuYX3xG MiY2eJHbMxHHcmCFOghjj4JXCjLezmRtZAXEGpnyb0MUTi9oWyhm5F6q0K9wqlnH rtQACIx3rnPC2a43sqoEdza5HiajTimlOSgAL1AcfyuzlD+AyggeGUNKAPOFUJpo 2ju14Srlr4q3dYh0cLEOn8TORHO5A+fU00q92dxps5zz5tL8KSHEUoOBggQ6LcIF KmTDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEiTGdZlz1oy/cl5SXu+z6qGY6oNCzDgm+DdaAnmNU9BTX+VYvcjjpfL4yjkCXpJG p5O4wtsyKjo8tBdf/ZGt1JWX6q/S8HrCp0x2S9ndiicxoyd7MB9JTKRts3etlcaGol3vk+ bTeyM93eewNflidtKsT5T6rQC/kiRvWhewxlEFp20sQhjVH5oNlTNviW7nzXMw1fDfAf4+ RwCEpDoGvfKr+vnUVHu8D3RM2mcmQSYZqTUezP+fAjGz6Xwc2PACjb0u0oFroMNvVeTISi f0kjEf4mx1yl+3A/4aUx7ll24XEBnGAdOimA51SCLFDogimLycSKyiplc9NHnfIY/FdFV+ DWZPc5sjrgZ+UgsYoB64KVgAQuci1I5rv1WS9l9C/07YuutbgxNx+qlx8lyYnfq/eAijPs PHeV8n/0woZKThNSF/ymIEg7GiVCuiMluPzzm6NYU00SQwpZwKPxu2IoLiocgbYchr3SLz nE6Kh1XkaCF6u3DRKe3jbelvCCIpySWsMwc8tO1qKSSZY88/n8LarXGuZzS7VxiMfstphR TodwOrk5JpDEXFwfNgcqe/xPz7Kibn0OFNHpezofeK45gjcgZ4br//ismXYF+Q3pD87c6G 9Emtxnnaokj1ycCOXAppRuFDGmWeYrQ/s43yLEoAHXy+ylGLyBCVLpHVkV3g X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Sep 2026 08:47:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1788871660; bh=MdqgVGjBQ49CSfhepqE95Idh1KM+Kd/mzLD4EbU76mk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=xfRG0r3+UNScl4KSwJVCEKSvT1NhYLa88DBrE5XYc8KENtb6b/tKyCAqh7B+CYwau /QRToOTiWVHP2tTmYMr/QXKI1aUdTvxGEVJ+2HtC/K0t0hn4HDc4lR+3PIw4iEIJsu gb9emwf7lHh/QGIj+q09JQyDweGmsj7VWx4NXMx66tBcf9M4DFb3C8Jj2cEy/w2hl9 bH0TC+eGkqJ1JuH8qdPRLOYLOi38P1LmFsyPhly/lDcn1ktDEU5DtP6DZe2VjKFG1x eVcv1UXW3K7Y9HHNM8bo2Iq6OLhxubjRNVT6fX81xyfcFGQ3YFif4iDTeV1zGu8pg/ ebTw88zwwl5AQ== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 00E8BB00039; Tue, 08 Sep 2026 14:47:39 +0200 (CEST) Date: Tue, 8 Sep 2026 14:47:39 +0200 From: Alvaro Herrera To: Masahiko Sawada Cc: Bharath Rupireddy , Antonin Houska , Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: REPACK (CONCURRENTLY) rewrites tables marked with user_catalog_table Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, On 2026-Sep-04, Masahiko Sawada wrote: > I reviewed the patch. It's simple and I agree to add a check for user > catalog tables. I've slightly rephrased the comment in > check_concurrent_repack_requirements() to clarify the reason why > REPACK (CONCURRENTLY) doesn't support user catalog tables while it > does for normal tables even though it's a MVCC-unsafe operation. Also > updated the commit message as well. Please review it. Thanks, I gave this a look and I think it's okay. I'm not sure about the exact wording of the error message though, > + ereport(ERROR, > + errcode(ERRCODE_FEATURE_NOT_SUPPORTED), > + errmsg("cannot execute %s on relation \"%s\"", > + "REPACK (CONCURRENTLY)", RelationGetRelationName(rel)), > + errhint("%s is not supported for tables used as catalog tables.", > + "REPACK (CONCURRENTLY)")); ERROR: cannot execute REPACK (CONCURRENTLY) on relation "foobar" HINT: REPACK (CONCURRENTLY) is not supported for tables used as catalog tables. I think the HINT should really be DETAIL, and I'm not sure we need to mention the command again there. On the other hand, I'm not really happy with the term "tables used as catalog tables". In the documentation we use the term "user provided catalog tables" or simply "user catalog tables" (see ). So how about something like this? ERROR: cannot execute REPACK (CONCURRENTLY) on relation "foobar" DETAIL: This operation is not supported for user catalog tables. Would you push this patch, or do you want me to? Thanks! -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/