Re: question regarding full_page_write

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: question regarding full_page_write
Дата
Msg-id 4D5CA48A.4050608@2ndquadrant.com
обсуждение исходный текст
Ответ на question regarding full_page_write  (AI Rumman <rummandba@gmail.com>)
Ответы Re: question regarding full_page_write  (Martín Marqués <martin.marques@gmail.com>)
Список pgsql-general
AI Rumman wrote:
> I can't clearly understand what FULL_PAGE_WRITE parameter is stand for.
> Documentation suggest that If I make it OFF, then I have the chance
> for DB crash.
> Can anyone please tell me how it could be happened?

The database writes to disk in 8K blocks.  If you can be sure that your
disk drives and operating system will always write in 8K blocks, you can
get a performance improvement from turning full_page_writes off.  But if
you do that, and it turns out that when the power is interrupted your
disk setup will actually do partial writes of less than 8K, your
database can get corrupted.  Your system needs to ensure that when a
write happens, either the whole thing goes to disk, or none of it does.

--
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books


В списке pgsql-general по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: why does the toast table exist?
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Raid Controller Write Cache setting for WAL and Data