Re: "Healing" a table after massive updates
От
Alvaro Herrera
Тема
Re: "Healing" a table after massive updates
Дата
Msg-id
20080911143534.GB9492@alvh.no-ip.org
Ответ на
Re: "Healing" a table after massive updates (Brad Nicholson)
Список
Дерево обсуждения
"Healing" a table after massive updates "Gauthier, Dave" <dave.gauthier@intel.com>
Re: "Healing" a table after massive updates "Gauthier, Dave" <dave.gauthier@intel.com>
Re: "Healing" a table after massive updates Bill Moran <wmoran@collaborativefusion.com>
Re: "Healing" a table after massive updates Alvaro Herrera <alvherre@commandprompt.com>
Re: "Healing" a table after massive updates Bill Moran <wmoran@collaborativefusion.com>
Re: "Healing" a table after massive updates "Scott Marlowe" <scott.marlowe@gmail.com>
Re: "Healing" a table after massive updates Gregory Stark <stark@enterprisedb.com>
Re: "Healing" a table after massive updates Tom Lane <tgl@sss.pgh.pa.us>
Re: "Healing" a table after massive updates Gregory Stark <stark@enterprisedb.com>
Re: "Healing" a table after massive updates Brad Nicholson <bnichols@ca.afilias.info>
Re: "Healing" a table after massive updates Alvaro Herrera <alvherre@commandprompt.com>
Re: "Healing" a table after massive updates Alan Hodgson <ahodgson@simkin.ca>
Re: "Healing" a table after massive updates "Scott Marlowe" <scott.marlowe@gmail.com>
Brad Nicholson wrote: > If you want to compact the the table, you either need to use CLUSTER or > VACUUM FULL + REINDEX. Actually those are all pretty slow. If you can do a no-op ALTER TYPE that rewrites the entire table, it is a lot faster. Something like ALTER TABLE tab ALTER COLUMN col TYPE integer; Assume that column "col" on table "tab" already has type integer. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления