Re: [PATCHES] Reviewers Guide to Deferred Transactions/Transaction Guarantee

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема Re: [PATCHES] Reviewers Guide to Deferred Transactions/Transaction Guarantee
Дата
Msg-id E1539E0ED7043848906A8FF995BDA57901E7BF3B@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: [PATCHES] Reviewers Guide to Deferred Transactions/Transaction Guarantee  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I agree with Tom's reasoning about the suggested simplifications, sorry.

> > 3. Should the WALWriter also do the wal_buffers half-full write at
the
> > start of XLogInsert() ?
>
> That should go away entirely; to me the main point of the
> separate wal-writer process is to take over responsibility
> for not letting too many dirty wal buffers accumulate.

That also sounds a lot simpler, but I think Bruce wanted to be able to
give
some time guarantee to the not waiting for fsync txns.
When a commit only half-filled the page and no more WAL comes in for
a long time, there is only WALWriter to do the IO.
The WALWriter would need to only flush a half-full page after timeout
iff it contains a commit record.

One more question on autocommit:
Do we wait for a flush for an autocommitted DML ?
Seems we generally should not.

Andreas



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

Предыдущее
От: "Dany DeBontridder"
Дата:
Сообщение: Re: where to write small reusable functions ?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: conflicting gettimeofday with MinGW