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.98.2) (envelope-from ) id 1xCKqn-00000003jKB-37Dp for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Oct 2026 17:45:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xCKqm-00000008G5O-39Zg for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Oct 2026 17:45:44 +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.98.2) (envelope-from ) id 1xCKqm-00000008G5G-1uCy for pgsql-hackers@lists.postgresql.org; Thu, 01 Oct 2026 17:45:44 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCKqk-00000002Eam-2kRE for pgsql-hackers@lists.postgresql.org; Thu, 01 Oct 2026 17:45:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 691HjcFW1113329; Thu, 1 Oct 2026 13:45:38 -0400 From: Tom Lane To: Tomas Vondra cc: Jim Jones , Alex Liapychev , matheusssilv97 , Chao Li , "masao.fujii" , "david.g.johnston" , "huseyin.d3r" , pgsql-hackers , chochoforwork@gmail.com, 44973863@qq.com Subject: Re: COMMENTS are not being copied in CREATE TABLE LIKE In-reply-to: <6cfde153-bb97-4fa5-a7e2-6b7c2056ae5d@vondra.me> References: <2d41978b-3bca-4756-b0a0-b6e707ad7793@uni-muenster.de> <88b16128-d6f4-4a7b-a29a-fa0cd1c2084f@uni-muenster.de> <65963A8C-C1EE-431E-9513-C4AD16AEE789@gmail.com> <223a6be3-3917-47a4-9b5d-51720c60ad58@vondra.me> <36F56BBE-1499-4F82-AC03-05AAAE65D657@gmail.com> <6cc4ef4b-f997-4453-ab40-bc012d342fa0@uni-muenster.de> <6cfde153-bb97-4fa5-a7e2-6b7c2056ae5d@vondra.me> Comments: In-reply-to Tomas Vondra message dated "Thu, 01 Oct 2026 19:25:49 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1113327.1790876738.1@sss.pgh.pa.us> Date: Thu, 01 Oct 2026 13:45:38 -0400 Message-ID: <1113328.1790876738@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > Yes, I can construct a made-up example, but I struggle to create an > example where copying table comments would be meaningful. > I think this lack of use case is partially due to the origin of the > patch. If it was written because of genuine need for the feature, we'd > have the use case by definition. But it was written "because it's > missing" and so no use case. Yeah, this argument is what's bugging me. We are struggling to figure out what the patch should do with multiple comments because we don't have a clear use-case in mind. Any behavior we choose might be the wrong one for whatever usage is out there. So I'd just as soon pass on implementing this functionality until we have some field requests and we can quiz those people about their needs. regards, tom lane