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 1vqkYo-00HAWI-0T for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Feb 2026 04:13:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqkYn-00COwg-0t for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Feb 2026 04:13:42 +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 1vqkYm-00COwY-2y for pgsql-hackers@lists.postgresql.org; Fri, 13 Feb 2026 04:13:41 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vqkYl-00000000QWB-35La for pgsql-hackers@lists.postgresql.org; Fri, 13 Feb 2026 04:13:41 +0000 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-7d4c383f2fcso266205a34.0 for ; Thu, 12 Feb 2026 20:13:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770956017; cv=none; d=google.com; s=arc-20240605; b=bE50UYJLtQLWM9Roq88xeS8sZDlDzK9aTFJGZnQf/bNOkj/3RG3Kjeu949RJltWJiY 9NlBbyWMOhc7bcbfNT8NkHm1BIMhsbjm/RUG+RhNv8JNCeA1JkY9Qo8YDy0594+i/SI8 1g8HnEGByprOBFQw4SVtvfYFTLuGqLRGLQV1n53a6r9zVkOQi3kR3QjTbOL0q21cSDnI G/2SYYz3KfrTJOpABMtossgjOJbLlQMGhFcA0WW3KVWgW+xSyEJJOUzCLaYLwD6O0re6 aYMjaRXBz4Sw6u++dtb/9xFKeb6yvepOrXsHOFNVRgaHaWKbjsnIe5No0D9ut9UYHlpZ swqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7giwn7yaFpqMM3Dr7VXvK1R+5+/0xZbGUOuxvnwSQ4s=; fh=0DpCuyUa4d8IuriXRKcvvxCVn0lWyZCzBEk9Pr2S5bg=; b=GMr5olp100tIYeZTnxl04LH1yfWh9jZ8nn14Hk31pVcIoyuBAjSB1ekq+plyZr+70p ZbeozeGvN+aj2Gbcf3cJ9UXBgjGG1W/8BblTU1HuIT7DVTtGYBke3rfctRROVlWijWr3 +nsJ1pMrpOclQXA7HcXH56VGn/qXM9nKHiyBpbpzkiww5ydYC8+TMk1ZlGtOGGi3JART D/PQ+FvRUkHqnno2D5JywWWjivvIa5Q0K1Jw4GsGvDX2kDEbFxEUVdSQvBIBjbgtIK64 kQ4UEa6M3dVDEHcRW/KosSLKWLtlc9Potwnl88YHajN0RLMFXHYrN2ryuD83lqeGuEK+ hRkg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770956017; x=1771560817; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7giwn7yaFpqMM3Dr7VXvK1R+5+/0xZbGUOuxvnwSQ4s=; b=Vs2cqv68u4hvNTbXwK830OaI6NWor85E4iR/lPEnJHabZufQMbNQIn0xv76zUksCnU PsnV2Zq9aKR3pWZmgzg8O7mQ4DyAXtBg2awCZE367OsWzwwC99a82esAdvU+DncgC98S TEtgHT2OUZEnIMCujAEn5A2q8CMLjQLEeCCYYot3vtnFaoeRUcKxiqGahttIG2s2OuJ+ TXpjP0CpvvorkWinCCUBz6SO2mTSQ9X39oEmvfRfB3sb31sk9Yejoy0JzLCuG5c6As13 moV06fffXF9e+yN5u0O8T/sf6C6KR4sRnGk1eYbzrp98J0tKbjjcEsaKVaIlVNoVLNLP rQNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770956017; x=1771560817; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7giwn7yaFpqMM3Dr7VXvK1R+5+/0xZbGUOuxvnwSQ4s=; b=JF85ulXScozEj03bpwADeXS46fDL7QnPeBfSWlQjhhaWjtaIfmRZ69X5PJ0I7rIjKB eBe3VQOcZP0FIWPRwxn8G08d+dlh/HPXspgX7LCMNMfc/y6YoWDsxDu3PYFx+2dOjS3r eXauqj33QvXvPcOmcW4SW/pN6SKYqmll/1pbSSln9xtyFnsCgQDhIsC6j1M1qURf+rfD nv5oQcKPcn/u5Iz8E+o4nVmm2B/PCTMegFySBcvCCqOTmK2cK/y5mfVFNkqvv1G1ly+K JZfRqEHi3FDPNwwBLQqyBFZXI56VBkyWr/1y3vkwViXJ3D+C/R1UTXRNXE0/2r3ZRg3X oXoQ== X-Forwarded-Encrypted: i=1; AJvYcCUwXbjE0v5CLrFaooG79M94y6sVel6WxBJd4P3Sj14+MAgEzhJyQUd7IPZamaiezOuKGtrYyw6ZsNnUM4H9@lists.postgresql.org X-Gm-Message-State: AOJu0YxHL1nNNEv6jcwu1HZ539lacQ3EncfZyCXEsxxnXwCgx3+ctCe+ NmcnN1KIX7C1Ds+N2HDswIKnxP/1/Ym9XlnK6LI7ci7wBmoidIuEhXVcGj5hpnjS9i5hNGY0taf 6sn0BpvQWcJcOLKm6/zsbPnGSDYg6g3I= X-Gm-Gg: AZuq6aKbPPSypRXMpCPAToXNzPq6aM6KR87jesrnMahYZqV4RIBrvXLaS63KU0enQSH 4u9I63b61mrnZ+6wLlKtZfoNn7j1JW4p1GbR+CQPDGo62mpR3c108Ns0yEbSmN7zEQigRqYS1FC V66nL+oGrViWS+RQ7EqcnoQpJ5eujy994H89CFywcO/o7Tn5IKXd9eY2/0PHs5v2owKAfkQH3gq JbNRoCnkXaw/O3nY8/IW9RNN0M7Zrks8/2MRFZV/Zhny0OTExdSETVMIKCCN9BkxUdM87uvLPFT Lg4uemmm2ezyJ4RuFKqOz3xLMZ1Lthr4ONfcEoc2+w== X-Received: by 2002:a05:6820:81c8:b0:65d:1336:f667 with SMTP id 006d021491bc7-67768bd3dd9mr160888eaf.54.1770956017391; Thu, 12 Feb 2026 20:13:37 -0800 (PST) MIME-Version: 1.0 References: <50f693ad-faec-4b1b-8de5-88dc90b236b4@uni-muenster.de> In-Reply-To: <50f693ad-faec-4b1b-8de5-88dc90b236b4@uni-muenster.de> From: Fujii Masao Date: Fri, 13 Feb 2026 13:13:25 +0900 X-Gm-Features: AZwV_Qj67rnUn1r4eoFZ6BrufGbATPDExW-eeKhcW6dZ6JALdMRnP71hrOmWWk4 Message-ID: Subject: Re: COMMENTS are not being copied in CREATE TABLE LIKE To: Jim Jones Cc: Matheus Alcantara , "pgsql-hackers@lists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 13, 2026 at 12:34=E2=80=AFAM Jim Jones wrote: > > > > On 12/02/2026 16:08, Fujii Masao wrote: > > On Thu, Feb 12, 2026 at 11:36=E2=80=AFPM Matheus Alcantara > > wrote: > >> The patch fix the issue and it seems correct to me. > > Thanks for the review! > > > The documentation [1] states that INCLUDING COMMENTS copies comments fo= r > > the copied columns, constraints, and indexes. It does not mention copyi= ng > > comments on the table itself. Therefore, not copying table comments wit= h > > INCLUDING COMMENTS does not appear to be a bug. That is, the proposed p= atch > > seems more like an improvement than a bug fix. > > Hmm, it seemed so obvious to me that I didn=E2=80=99t look more closely a= t the > documentation :) Although I struggle to see the rationale for not > copying a table=E2=80=99s comment in a CREATE TABLE LIKE ... INCLUDING CO= MMENTS > statement, I have to agree that the documentation is quite clear about > this limitation, and therefore it cannot really be considered a bug. > That said, it may well be worth considering for a future release. > > What are your thoughts? At first, I felt it would be more intuitive to copy the table comment as we= ll. However, on second thought, since LIKE can reference multiple tables, copying table-level properties such as comments may not be well-defined. For example, if two source tables each have a table comment and both are specified in LIKE, which comment should be applied to the new table? Regards, --=20 Fujii Masao