pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Preserve clustered index after rewrites with ALTER TABLE
6+ messages / 1 participants
[nested] [flat]

* pgsql: Preserve clustered index after rewrites with ALTER TABLE
@ 2020-04-06 02:08  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-04-06 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve clustered index after rewrites with ALTER TABLE

A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3f77a670241d114eb4b65ad6eed52298d28dcef8

Modified Files
--------------
src/backend/commands/tablecmds.c          | 46 +++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c       | 23 +++++++++++++++
src/include/utils/lsyscache.h             |  1 +
src/test/regress/expected/alter_table.out | 48 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 25 ++++++++++++++++
5 files changed, 143 insertions(+)



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

* pgsql: Preserve clustered index after rewrites with ALTER TABLE
@ 2020-04-06 02:08  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-04-06 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve clustered index after rewrites with ALTER TABLE

A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/61a161fe44214431b3e74cc820b777519eb4a654

Modified Files
--------------
src/backend/commands/tablecmds.c          | 46 +++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c       | 23 +++++++++++++++
src/include/utils/lsyscache.h             |  1 +
src/test/regress/expected/alter_table.out | 48 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 25 ++++++++++++++++
5 files changed, 143 insertions(+)



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

* pgsql: Preserve clustered index after rewrites with ALTER TABLE
@ 2020-04-06 02:08  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-04-06 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve clustered index after rewrites with ALTER TABLE

A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5

Branch
------
master

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

Modified Files
--------------
src/backend/commands/tablecmds.c          | 46 +++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c       | 23 +++++++++++++++
src/include/utils/lsyscache.h             |  1 +
src/test/regress/expected/alter_table.out | 48 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 25 ++++++++++++++++
5 files changed, 143 insertions(+)



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

* pgsql: Preserve clustered index after rewrites with ALTER TABLE
@ 2020-04-06 02:08  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-04-06 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve clustered index after rewrites with ALTER TABLE

A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/41faafbd75a5c70fa94bf57e408e6b29c4425ceb

Modified Files
--------------
src/backend/commands/tablecmds.c          | 46 +++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c       | 23 +++++++++++++++
src/include/utils/lsyscache.h             |  1 +
src/test/regress/expected/alter_table.out | 48 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 25 ++++++++++++++++
5 files changed, 143 insertions(+)



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

* pgsql: Preserve clustered index after rewrites with ALTER TABLE
@ 2020-04-06 02:08  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-04-06 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve clustered index after rewrites with ALTER TABLE

A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3e62dd3a937b7da84e8ae126c7bf8319c1cd5c08

Modified Files
--------------
src/backend/commands/tablecmds.c          | 46 +++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c       | 23 +++++++++++++++
src/include/utils/lsyscache.h             |  1 +
src/test/regress/expected/alter_table.out | 48 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 25 ++++++++++++++++
5 files changed, 143 insertions(+)



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

* pgsql: Preserve clustered index after rewrites with ALTER TABLE
@ 2020-04-06 02:08  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2020-04-06 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve clustered index after rewrites with ALTER TABLE

A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5

Branch
------
REL_10_STABLE

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

Modified Files
--------------
src/backend/commands/tablecmds.c          | 46 +++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c       | 23 +++++++++++++++
src/include/utils/lsyscache.h             |  1 +
src/test/regress/expected/alter_table.out | 48 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 25 ++++++++++++++++
5 files changed, 143 insertions(+)



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


end of thread, other threads:[~2020-04-06 02:08 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 02:08 pgsql: Preserve clustered index after rewrites with ALTER TABLE Michael Paquier <michael@paquier.xyz>
2020-04-06 02:08 pgsql: Preserve clustered index after rewrites with ALTER TABLE Michael Paquier <michael@paquier.xyz>
2020-04-06 02:08 pgsql: Preserve clustered index after rewrites with ALTER TABLE Michael Paquier <michael@paquier.xyz>
2020-04-06 02:08 pgsql: Preserve clustered index after rewrites with ALTER TABLE Michael Paquier <michael@paquier.xyz>
2020-04-06 02:08 pgsql: Preserve clustered index after rewrites with ALTER TABLE Michael Paquier <michael@paquier.xyz>
2020-04-06 02:08 pgsql: Preserve clustered index after rewrites with ALTER TABLE Michael Paquier <michael@paquier.xyz>

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