Re: [HACKERS] Index recreation in vacuum
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] Index recreation in vacuum |
Дата | |
Msg-id | 200001192151.QAA27235@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Index recreation in vacuum (Dmitry Samersoff <dms@wplus.net>) |
Список | pgsql-hackers |
[Charset koi8-r unsupported, filtering to ASCII...] > Bruce Momjian wrote: > > > > We need two things: > > > > > auto-create index on startup > > IMHO, It have to be controlled by user, because creating large index > can take a number of hours. Sometimes it's better to live without > indices > at all, and then build it by hand after workday end. OK, full circle time. That is why I recommended making a separate new heap and index and using rename() to move them into place once the vacuum is completed. In a failure during vacuum, the failed vacuum files should be just removed on startup. No downtime, and index is in place. Also, I thought about how to do rename() of multiple tables atomically. My idea would be to have a pg_startup table that contains information about what operations should be performed on startup. You could write to the file in an atomic action, and if there was a failure, on startup, the file could be read and the operations performed. We would basically be using our own transaction system to guarantee file system atomicity. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: