Re: Pinning a table into memory

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: Pinning a table into memory
Дата
Msg-id 3DA2DE82.1AC84934@Yahoo.com
обсуждение исходный текст
Ответ на Pinning a table into memory  ("David Blood" <david@matraex.com>)
Список pgsql-general
Tom Lane wrote:
>
> "David Blood" <david@matraex.com> writes:
> > In Oracle you can Pin large objects into memory to prevent frequent
> > reloads. Is there anyway to do this with Postgres?
>
> I can never understand why people think this would be a good idea.
> If you're hitting a table frequently, it will stay in memory anyway
> (either in Postgres shared buffers or kernel disk cache).  If you're
> not hitting it frequently enough to keep it swapped in, then whatever
> is getting swapped in instead is probably a better candidate to be
> occupying the space.

As I understand it, he's looking for a mechanism to prevent a single
sequential scan on a table, larger than the buffer cache, to kick out
everything else at once. But I agree with you that pinning other objects
is just mucking with the symptoms instead of curing the desease.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #

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

Предыдущее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: Hot Backup
Следующее
От: "Erwan DUROSELLE"
Дата:
Сообщение: Rép. : Re: Hot Backup