Re: Moving more work outside WALInsertLock

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Moving more work outside WALInsertLock
Дата
Msg-id CAMkU=1zT2NOoug6oWZ0tRvkVM74OBzw_GM+ebyRC68nsF1ZM9Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Moving more work outside WALInsertLock  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Moving more work outside WALInsertLock  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Dec 15, 2011 at 7:34 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
>> I've been experimenting with different approaches to do that, but one
>> thing is common among all of them: you need to know the total amount of
>> WAL space needed for the record, including backup blocks, before you
>> take the lock. So, here's a patch to move things around in XLogInsert()
>> a bit, to accomplish that.
>
> This patch may or may not be useful, but this description of it is utter
> nonsense, because we already do compute that before taking the lock.
> Please try again to explain what you're doing?

Currently the CRC of all the data minus the header is computed outside the lock,
but then the header's computation is added and the CRC is finalized
inside the lock.


Cheers,

Jeff


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Command Triggers
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Command Triggers