Re: Is Patch Ok for deferred trigger disk queue?

Поиск
Список
Период
Сортировка
От Stuart
Тема Re: Is Patch Ok for deferred trigger disk queue?
Дата
Msg-id 3F017D15.5070908@blueyonder.co.uk
обсуждение исходный текст
Ответ на Re: Is Patch Ok for deferred trigger disk queue?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Is Patch Ok for deferred trigger disk queue?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Is Patch Ok for deferred trigger disk queue?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Tom Lane wrote:

> Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> 
>>As a side question, it looks to me that the code stores the first trigger
>>records in memory and then after some point starts storing all new records
>>on disk.  Is this correct?  I'd wonder if that's really what you want in
>>general, since I'd think that the earliest ones are the ones you're least
>>likely to need until end of transaction (or set constraints in the fk
>>case) whereas the most recent ones are possibly going to be immediate
>>triggers which you're going to need as soon as the statement is done.
> 
> 
> Good point.  It would be better to push out stuff from the head of the
> queue, hoping that stuff near the end might never need to be written
> at all.
> 
>             regards, tom lane
Hmmm.... I see your point. I will change the patch to write the head to
disk and reenter when the development branch splits off.
Also I've noticed that there is an fd.h which has file routines which I
should be using rather than the stdio routines.
I will also clean up those errors.
Thank you,
- Stuart




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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Index expressions: how to recreate
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: dblink for Oracle - question ...