CREATE TABLE LIKE(INCLUDING COMMENTS) description ignored STATISTICS

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: CREATE TABLE LIKE(INCLUDING COMMENTS) description ignored STATISTICS
Date: 2025-09-07 03:02:10
Message-ID: CACJufxG3M3W0Da+yRmu0Wj8mTUDTiEhtScsDFHb5xKfcDXWSZg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

hi.

https://www.postgresql.org/docs/devel/sql-createtable.html#SQL-CREATETABLE-PARMS-LIKE-OPT-COMMENTS
"""
INCLUDING COMMENTS
Comments for the copied columns, constraints, and indexes will be copied. The
default behavior is to exclude comments, resulting in the copied columns and
constraints in the new table having no comments.
"""

The above description should mention that comments on extended
statistics will be
copied as well?

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2025-09-07 05:03:05 Re: CREATE TABLE LIKE(INCLUDING COMMENTS) description ignored STATISTICS
Previous Message Jason Tiller 2025-09-06 00:02:53 Re: SELECT List with/without parentheses