Re: create table like including storage parameter

Euler Taveira <euler@eulerto.com>

From: "Euler Taveira" <euler@eulerto.com>
To: "jian he" <jian.universality@gmail.com>
Cc: "Nathan Bossart" <nathandbossart@gmail.com>, "David G. Johnston" <david.g.johnston@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-12-18T14:59:39Z
Lists: pgsql-hackers
On Wed, Dec 17, 2025, at 3:41 AM, jian he wrote:
> Does the "parameter" (INCLUDING PARAMETERS) definition is close to "option"?
> This raises the question of whether we should also copy column-level options to
> the new table.
>

I don't think so. The current attribute options (n_distinct and
n_distinct_inherited) are closely tied to the data. I'm afraid that this
decision would impose bad plans in the future.


-- 
Euler Taveira
EDB   https://www.enterprisedb.com/