| От | Tom Lane |
|---|---|
| Тема | Re: Question on failure during cluster operation |
| Дата | |
| Msg-id | 1189.1150995901@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Question on failure during cluster operation ("Chris Hoover" <revoohc@gmail.com>) |
| Список | pgsql-admin |
"Chris Hoover" <revoohc@gmail.com> writes:
> I am wanting to run a cluster on the main table in all of our 200+
> databases. However, my manager wants to know what would happen if we suffer
> a major failure while the cluster is running.
Nothing. CLUSTER is transaction-safe (at least since PG 7.1 or so)
because it writes new separate versions of the files that don't become
the "real thing" until commit. Downside of this of course is you need
enough free disk space for 2 copies of the table and indexes.
If you did have a crash while running CLUSTER, there might be
unreferenced temporary files left laying around, which as things
currently stand would require manual cleanup if you wanted the disk
space back. There wouldn't be any database corruption though.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера