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 1vt5fK-002A6e-2X for pgsql-docs@arkaria.postgresql.org; Thu, 19 Feb 2026 15:10:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vt5fJ-003wPd-19 for pgsql-docs@arkaria.postgresql.org; Thu, 19 Feb 2026 15:10:05 +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 1vt5fJ-003wPV-0C for pgsql-docs@lists.postgresql.org; Thu, 19 Feb 2026 15:10:05 +0000 Received: from mail-dl1-x1233.google.com ([2607:f8b0:4864:20::1233]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vt5fF-000000009fo-3mel for pgsql-docs@lists.postgresql.org; Thu, 19 Feb 2026 15:10:04 +0000 Received: by mail-dl1-x1233.google.com with SMTP id a92af1059eb24-1274204434bso1561058c88.1 for ; Thu, 19 Feb 2026 07:10:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771513800; x=1772118600; darn=lists.postgresql.org; h=in-reply-to:references:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oZZ72bs7VnSp+qo9YaDXAc92EMQ1sKmR0lk06Ccmguk=; b=JSoKvVIfiT7UG3eJ/+2+WiHW0x73EGDP7gHrSILodn32XNX+xgmjd2wqg1kyBWzYSa QJWorpzg3RqZnkncZfM3oAkVDSrCz8goS+DOTGNW3e9HT3Y0Rwh+H9xDotM5y0ga64w3 Ky67zIM681UBcsfZXjb3rXst5NOZ986gbfvBFaGxaxz9/ceCUCTfHtRXX+cY2T2uHUHi MUTB2tbIsNYQW6RLlWfs9k22pOk6A91iaZ429IVM4NrgMqgm25lfHy2tZ8a3Lxd2EX5L ptDBbllsBqLfLyfaPWqecZVTrZTcCzuJ9TG9TvfkUmZUJ7rFm98MM0DxTIQVBbLm2EY4 dcfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771513800; x=1772118600; h=in-reply-to:references:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oZZ72bs7VnSp+qo9YaDXAc92EMQ1sKmR0lk06Ccmguk=; b=sQ4CrFQiCbnA+FWSMFUbK7ja8r6fIyKog287MXRFmJt+fSF3XML9yggegyCWzsPGnN 1MDX7sgpnEcrkK0CvYXQqli/w6yy0uMErfuB68mhQDSkV2oNgfzcUm6zGK4DdGXP7ymB TZwqE6q37grOkT6MuHUVKBQP6QByLP9XQsJcIwZSFH8Cpb7ivglzLICZHZVJLHAju3JP iKR9XRLN3OFwrFvwtgEVa1jo/3OG8eJbXBajGE6L2bP0SQuJhPsl4yfyMJuNVgazzsS6 zplM7CnczGfT7lMqJamH+oGzPLUTe7S62gg5SEujn/XeG9+2n1jZMKTdxhxUe8NZ/U4C N0BQ== X-Forwarded-Encrypted: i=1; AJvYcCWcARFPkejS+fhyPTvTjluEqmRM8kK1gwxi1Uh525NMhtZIIghMWag8tbZyIy6qQHMoClC1YouCnSV6@lists.postgresql.org X-Gm-Message-State: AOJu0Yxplp5dFeZxcug01VmlwdwoY1DHu969TeKm2OXvI5nlxkkbY4da tZKayLVoIqljgP9i3ukqrEVZhe7HM0LBhgiu8iYJ1ubS7f0SJKcnW4Z6 X-Gm-Gg: AZuq6aKCpvNdb7eDiWbF9mqPoNcQFfhthRY1fJ2bLzyULtyw86Cl1gs6foV5dKSH5py 3c6QIZif0M6VMck9Q7rKSrbpkJJRTj1yvtkw9vGcKPv1UkBIZta7LmcLzxt/IS8lcL6lj1TV4E5 IqCvxYSAUUH782JwYThglUJDa4j/d/qUsa7UDRFqJeSGrquQlf/8EdehbKcNDLeICJmzjmRdwqj I3zztB/J9YXRP2sYdqG2ydqVu32JDKCncAtPxLqG5djGvwSVqnfoS56cTcmfzUZgnSxICX7l51h F20kfrVML5yfy82LFsx0eg7r0FCMiajXY0cAaBDw3rNgpj8qeErEQDmvl/+BeQyvc7/Eh5DvK7M 5OOp/7UODZKCUCGbxcVX0PY/k+2YlsS/oizeqr/E3nt+Gg0Ck0ySxUvacRFgmZriwCOSHSthnR5 yy6Cy4Eb6KkxG0QBXQn2qXHaNa+NeJ2XH63knb6Wl/cGJNkAuUqw== X-Received: by 2002:a05:7300:2152:b0:2ba:76e1:39fe with SMTP id 5a478bee46e88-2bd60769b61mr845842eec.6.1771513799924; Thu, 19 Feb 2026 07:09:59 -0800 (PST) Received: from localhost ([2804:14d:328a:a59c:300f:55a:7205:4458]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2bacb66bd17sm22216136eec.28.2026.02.19.07.09.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Feb 2026 07:09:59 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 19 Feb 2026 12:09:57 -0300 Message-Id: Subject: Re: Clarify INCLUDING COMMENTS behavior in CREATE TABLE and CREATE FOREIGN TABLE docs From: "Matheus Alcantara" To: "Fujii Masao" , X-Mailer: aerc 0.21.0 References: In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue Feb 17, 2026 at 11:36 AM -03, Fujii Masao wrote: > Hi, > >> Comments for the copied columns, constraints, and indexes will be copied= . > > The above current description of INCLUDING COMMENTS in the CREATE TABLE d= ocs > appears inaccurate and incomplete. It says that comments on constraints a= re > copied, but in practice only comments on CHECK and NOT NULL constraints > are copied; comments on other constraints (such as primary keys) are not. > In addition, comments on extended statistics are copied, but this is not > documented. > > The CREATE FOREIGN TABLE docs has a similar omission: comments on extende= d > statistics are also copied, but this is not mentioned. > > Therefore I'd like to propose the attached patch to clarify the actual be= havior > of INCLUDING COMMENTS. Thoughts? > Hi, thanks for the patch. The changes make sense to me, it sounds more clear. I've performed some tests and the documentation seems correct about what comments are actually copied. -- Matheus Alcantara EDB: https://www.enterprisedb.com