Re: ALTER TABLE rewrite to use clustered order

2020-02-08 Thread Tom Lane
Justin Pryzby writes: > On Thu, Dec 27, 2018 at 10:24:17AM -0300, Alvaro Herrera wrote: >> I think it would be valuable to have those ALTER TABLE variants that rewrite >> the table do so using the cluster order, if there is one, instead of the heap >> order, which is what it does today. > That's

ALTER TABLE rewrite to use clustered order

2020-02-08 Thread Justin Pryzby
Forking this thread https://www.postgresql.org/message-id/20181227132417.xe3oagawina7775b%40alvherre.pgsql On Wed, Dec 26, 2018 at 01:09:39PM -0500, Robert Haas wrote: > ALTER TABLE already has a lot of logic that is oriented towards being > able to do multiple things at the same time. If we adde