Re: ALTER tbl rewrite loses CLUSTER ON index
Amit Langote <amitlangote09@gmail.com>
From: Amit Langote <amitlangote09@gmail.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-02-06T09:14:16Z
Lists: pgsql-hackers
Attachments
- preserve-CLUSTER-ON-during-ALTER-TABLE_v3.patch (text/plain) patch v3
On Thu, Feb 6, 2020 at 10:31 AM Amit Langote <amitlangote09@gmail.com> wrote: > On Thu, Feb 6, 2020 at 8:44 AM Justin Pryzby <pryzby@telsasoft.com> wrote: > > On Wed, Feb 05, 2020 at 03:53:45PM +0900, Amit Langote wrote: > > > diff --git a/src/test/regress/sql/alter_table.sql b/src/test/regress/sql/alter_table.sql > > > +-- alter type shouldn't lose clustered index > > > > My only suggestion is to update the comment > > +-- alter type rewrite/rebuild should preserve cluster marking on index > > Sure, done. Deja vu. Last two messages weren't sent to the list; updated patch attached. Thanks, Amit
Commits
-
Refactor cluster.c to use new routine get_index_isclustered()
- 8ef9451f58ee 13.0 landed
-
Preserve clustered index after rewrites with ALTER TABLE
- 3f77a670241d 9.5.22 landed
- 61a161fe4421 9.6.18 landed
- cef2b8d52c59 10.13 landed
- 41faafbd75a5 11.8 landed
- 3e62dd3a937b 12.3 landed
- a40caf5f862c 13.0 landed
-
Preserve replica identity index across ALTER TABLE rewrite
- 1cc9c2412cc9 13.0 cited
-
Remove RangeIOData->typiofunc
- a77315fdf2a1 13.0 cited
-
Preserve pg_index.indisclustered across REINDEX CONCURRENTLY
- f087d63a45b5 12.3 landed
- d79fb88ac738 13.0 landed