Re: PITR, checkpoint, and local relations

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: PITR, checkpoint, and local relations
Дата
Msg-id 200208040036.g740aDT12921@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: PITR, checkpoint, and local relations  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: PITR, checkpoint, and local relations
Список pgsql-hackers
Christopher Kings-Lynne wrote:
> > The main area where it seems to get heavy use is during index builds,
> > and for 'CREATE TABLE AS SELECT...'.
> >
> > So I will remove the local buffer manager as part of the PITR patch,
> > unless there is further objection.
> 
> Would someone mind filling me in as to what the local bugger manager is and
> how it is different (and not useful) compared to the shared buffer manager?

Sure.  I think I can handle that.

When you create a table in a transaction, there isn't any committed
state to the table yet, so any table modifications are kept in a local
buffer, which is local memory to the backend(?).  No one needs to see it
because it isn't visible to anyone yet.  Same for indexes.

Anyway, the WAL activity doesn't handle local buffers the same as shared
buffers because there is no crisis if the system crashes.

There is debate on whether the local buffers are even valuable
considering the headache they cause in other parts of the system.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: FUNC_MAX_ARGS benchmarks
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: FUNC_MAX_ARGS benchmarks