GENERATED STORED columns and table rewrites? - Mailing list pgsql-general

From Maciek Sakrejda
Subject GENERATED STORED columns and table rewrites?
Date
Msg-id CAOtHd0BMw1A58d35DjWj5jScbmcoF1heGbBz_WV7kd2fU92cKg@mail.gmail.com
Whole thread Raw
Responses Re: GENERATED STORED columns and table rewrites?
List pgsql-general
Hello,

Does adding a GENERATED STORED column need to rewrite the table (like adding a column with a DEFAULT before 11)? Neither the ALTER TABLE docs [1] nor the generated column docs [2] discuss this. The former has a very nice Tip regarding DEFAULT columns--maybe we should clarify GENERATED STORED behavior either way? It seems like a very similar issue. Experimenting with this, \timing suggests that there is work proportional to the size of the table, but I'd like to understand the behavior better (and other users probably would, too).

Thanks,

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: pg_basebackup && long time storage of wal_archive/ content
Next
From: Niels Jespersen
Date:
Subject: timestamp and timestamptz