Re: tackling full page writes
От
Robert Haas
Тема
Re: tackling full page writes
Дата
Msg-id
BANLkTikyPcOFyC-QvsceOfa=978_qkCFCQ@mail.gmail.com
Ответ на
Re: tackling full page writes (Fujii Masao)
Список
Дерево обсуждения
tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes Jeff Davis <pgsql@j-davis.com>
Re: tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes Fujii Masao <masao.fujii@gmail.com>
Re: tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes Fujii Masao <masao.fujii@gmail.com>
Re: tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes Bruce Momjian <bruce@momjian.us>
Re: tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes Bruce Momjian <bruce@momjian.us>
Re: tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes Greg Smith <greg@2ndQuadrant.com>
Re: tackling full page writes Robert Haas <robertmhaas@gmail.com>
Re: tackling full page writes "Ross J. Reedstrom" <reedstrm@rice.edu>
Re: tackling full page writes Greg Stark <gsstark@mit.edu>
Re: tackling full page writes Simon Riggs <simon@2ndQuadrant.com>
On Thu, May 26, 2011 at 12:38 AM, Fujii Masao wrote: > On Thu, May 26, 2011 at 1:18 PM, Robert Haas wrote: >>> The replay of the WAL record for A doesn't rely on the content of chunk 1 >>> which B modified. So I don't think that "partial page writes" has such >>> a problem. >>> No? >> >> Sorry. WAL records today DO rely on the prior state of the page. If >> they didn't, we wouldn't need full page writes. They don't rely on >> them terribly heavily - things like where pd_upper is pointing, and >> what the page LSN is. But they do rely on them. > > Yeah, I'm sure that normal WAL record (neither full page writes nor > "partial page writes") relies on the prior state of the page. But WAL > record for A is "partial page writes", which also relies on the prior > state? Yeah, that's how it shakes out. The idea is you have to write the parts of the page that you rely on, but not the rest - which in turn guarantees that those parts (but not the rest) will be correct when you read them. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления