Re: Where is the decision about placement of new tuple made ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Where is the decision about placement of new tuple made ?
Дата
Msg-id 19044.1121178411@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Where is the decision about placement of new tuple made ?  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Hannu Krosing <hannu@skype.net> writes:
> Where in the source is the decision about the placement new tuple (on
> which page to put it) made ?

RelationGetBufferForTuple() and the free space map
src/backend/access/heap/hio.c
src/backend/storage/freespace/freespace.c

> I'd like to take a look at adding "gravity" to that decision, do that I
> can make postgres to decide to place new tuple (inserted or updated)
> near the beginning of file,

I have strong doubts about this idea.  The existing policy is designed
to reduce contention by having different backends inserting into
different pages.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Where is the decision about placement of new tuple made ?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] thousands comma numeric formatting in psql