Re: Column storage positions
От
Phil Currier
Тема
Re: Column storage positions
Дата
Msg-id
c58979e50702210625m677291e8x8836a0d1b9fb9de5@mail.gmail.com
Ответ на
Re: Column storage positions (Alvaro Herrera)
Список
Дерево обсуждения
Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions "Guillaume Smet" <guillaume.smet@gmail.com>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions "Guillaume Smet" <guillaume.smet@gmail.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions Robert Treat <xzilla@users.sourceforge.net>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions "Simon Riggs" <simon@2ndquadrant.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions "Simon Riggs" <simon@2ndquadrant.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions "Simon Riggs" <simon@2ndquadrant.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions Tom Lane <tgl@sss.pgh.pa.us>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions Robert Treat <xzilla@users.sourceforge.net>
Re: Column storage positions "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Column storage positions Kris Jurka <books@ejurka.com>
Re: Column storage positions "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Column storage positions Kris Jurka <books@ejurka.com>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions "Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Re: Column storage positions "Florian G. Pflug" <fgp@phlo.org>
Re: Column storage positions elein <elein@varlena.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions Bruce Momjian <bruce@momjian.us>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions Bruce Momjian <bruce@momjian.us>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions Bruce Momjian <bruce@momjian.us>
Re: Column storage positions "Florian G. Pflug" <fgp@phlo.org>
Re: Column storage positions Martijn van Oosterhout <kleptog@svana.org>
Re: Column storage positions "Florian G. Pflug" <fgp@phlo.org>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions Martijn van Oosterhout <kleptog@svana.org>
Re: Column storage positions Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions Gregory Stark <stark@enterprisedb.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions Gregory Stark <stark@enterprisedb.com>
Re: Column storage positions "Florian G. Pflug" <fgp@phlo.org>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions "Florian G. Pflug" <fgp@phlo.org>
Re: Column storage positions Gregory Stark <stark@enterprisedb.com>
Re: Column storage positions "Phil Currier" <pcurrier@gmail.com>
Re: Column storage positions Alvaro Herrera <alvherre@commandprompt.com>
Re: Column storage positions Andrew Dunstan <andrew@dunslane.net>
Re: Column storage positions "Florian G. Pflug" <fgp@phlo.org>
Re: Column storage positions "Sergey E. Koposov" <math@sai.msu.ru>
On 2/21/07, Alvaro Herrera wrote: > I'd expect the system being able to reoder the columns to the most > efficient order possible (performance-wise and padding-saving-wise), > automatically. When you create a table, sort the columns to the most > efficient order; ALTER TABLE ADD COLUMN just puts the new columns at the > end of the tuple; and anything that requires a rewrite of the table > (ALTER TABLE ... ALTER TYPE for example; would be cool to have CLUSTER > do it as well; and do it on TRUNCATE also) again recomputes the most > efficient order. That's exactly what I'm proposing. On table creation, the system chooses an efficient column order for you. The next time an ALTER TABLE operation forces a rewrite, the system would recompute the column storage order. I hadn't thought of having CLUSTER also redo the storage order, but that seems safe since it takes an exclusive lock on the table. I'm less sure about whether it's safe to do this during a TRUNCATE. phil
В списке pgsql-hackers по дате отправления