pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes
3+ messages / 1 participants
[nested] [flat]

* pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes
@ 2020-05-08 06:41  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2020-05-08 06:41 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate ALTER TABLE ... SET STORAGE to indexes

When creating a new index, the attstorage setting of the table column
is copied to regular (non-expression) index columns.  But a later
ALTER TABLE ... SET STORAGE is not propagated to indexes, thus
creating an inconsistent and undumpable state.

Discussion: https://www.postgresql.org/message-id/flat/9765d72b-37c0-06f5-e349-2a580aafd989%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/501e41dd3cb945287fdcfe25e8906e79872fcc44

Modified Files
--------------
contrib/test_decoding/expected/toast.out  |  4 +++
contrib/test_decoding/sql/toast.sql       |  5 ++++
src/backend/commands/tablecmds.c          | 47 +++++++++++++++++++++++++++++++
src/test/regress/expected/alter_table.out | 20 +++++++++++++
src/test/regress/expected/vacuum.out      |  4 +--
src/test/regress/sql/alter_table.sql      |  6 ++++
src/test/regress/sql/vacuum.sql           |  4 +--
7 files changed, 86 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes
@ 2020-05-08 08:15  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2020-05-08 08:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate ALTER TABLE ... SET STORAGE to indexes

When creating a new index, the attstorage setting of the table column
is copied to regular (non-expression) index columns.  But a later
ALTER TABLE ... SET STORAGE is not propagated to indexes, thus
creating an inconsistent and undumpable state.

Discussion: https://www.postgresql.org/message-id/flat/9765d72b-37c0-06f5-e349-2a580aafd989%402ndquadrant.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bf7233ee4a546219b078b5a0afc654ec02958bee

Modified Files
--------------
contrib/test_decoding/expected/toast.out  |  4 +++
contrib/test_decoding/sql/toast.sql       |  5 ++++
src/backend/commands/tablecmds.c          | 47 +++++++++++++++++++++++++++++++
src/test/regress/expected/alter_table.out | 20 +++++++++++++
src/test/regress/expected/vacuum.out      |  4 +--
src/test/regress/sql/alter_table.sql      |  6 ++++
src/test/regress/sql/vacuum.sql           |  4 +--
7 files changed, 86 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes
@ 2020-05-08 08:15  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2020-05-08 08:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate ALTER TABLE ... SET STORAGE to indexes

When creating a new index, the attstorage setting of the table column
is copied to regular (non-expression) index columns.  But a later
ALTER TABLE ... SET STORAGE is not propagated to indexes, thus
creating an inconsistent and undumpable state.

Discussion: https://www.postgresql.org/message-id/flat/9765d72b-37c0-06f5-e349-2a580aafd989%402ndquadrant.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/03a8a5f2d4a1f9886ad1d62d3f70424dfcdf8048

Modified Files
--------------
contrib/test_decoding/expected/toast.out  |  4 +++
contrib/test_decoding/sql/toast.sql       |  5 ++++
src/backend/commands/tablecmds.c          | 48 +++++++++++++++++++++++++++++++
src/test/regress/expected/alter_table.out | 20 +++++++++++++
src/test/regress/sql/alter_table.sql      |  6 ++++
5 files changed, 83 insertions(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-05-08 08:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 06:41 pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes Peter Eisentraut <peter@eisentraut.org>
2020-05-08 08:15 pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes Peter Eisentraut <peter@eisentraut.org>
2020-05-08 08:15 pgsql: Propagate ALTER TABLE ... SET STORAGE to indexes Peter Eisentraut <peter@eisentraut.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox