Re: Heavy write activity on first vacuum of fresh TOASTa

Поиск
Список
Период
Сортировка
От Matthew
Тема Re: Heavy write activity on first vacuum of fresh TOASTa
Дата
Msg-id Pine.LNX.4.58.0712141538490.3731@aragorn.flymine.org
обсуждение исходный текст
Ответ на Re: Heavy write activity on first vacuum of fresh TOAST data  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Heavy write activity on first vacuum of fresh TOASTa  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On Thu, 13 Dec 2007, Simon Riggs wrote:
> On Thu, 2007-12-13 at 09:46 -0600, Kevin Grittner wrote:
> > Even though there have been no rollbacks, updates, or deletes on this
> > table, the vacuum is writing as much as it is reading while dealing
> > with the TOAST data.
>
> Writing hint bits. Annoying isn't it? :-(

Interesting thread. Now, I know absolutely nothing about how the data is
stored, but it strikes me as being non-optimal that every single block on
the disc needs to be written again just to update some hint bits. Could
those bits be taken out into a separate bitmap stored somewhere else? That
would mean the (relatively small) amount of data being written could be
written in a small sequential write to the disc, rather than very sparsely
over the whole table.

Matthew

--
If you let your happiness depend upon how somebody else feels about you,
now you have to control how somebody else feels about you. -- Abraham Hicks

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

Предыдущее
От: "Roberts, Jon"
Дата:
Сообщение: Re: viewing source code
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Heavy write activity on first vacuum of fresh TOAST data