Re: Why copy_relation_data only use wal whenWALarchivingis enabled
В списке pgsql-hackers по дате отправления:
| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Why copy_relation_data only use wal whenWALarchivingis enabled |
| Дата | |
| Msg-id | 4717273E.9000300@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: Why copy_relation_data only use wal whenWALarchivingis enabled ("Jacky Leng" <lengjianquan@163.com>) |
| Список | pgsql-hackers |
Jacky Leng wrote: >> I tend to agree that truncating the file, and extending the fsync >> request mechanism to actually delete it after the next checkpoint, >> is the most reasonable route to a fix. > > How about just allowing to use wal even WAL archiving is disabled? > It seems that recovery of "XLOG_HEAP_NEWPAGE" record will do the > right thing for us, look at "heap_xlog_newpage": XLogReadBuffer > with init=true will extend the block rightly and rebuild it rightly. > > Someone may say that it's not worth recording xlog for operations > such as copy_relation_data, but these operations shouldn't happen > frequently. Always using WAL would fix the problem, but it's a big performance hit. WAL-logging doubles the amount of write I/O required. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера