Re: Reduce WAL logging of INSERT SELECT

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Reduce WAL logging of INSERT SELECT
Дата
Msg-id 1312652633.10087.13.camel@jdavis
обсуждение исходный текст
Ответ на Re: Reduce WAL logging of INSERT SELECT  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Fri, 2011-08-05 at 23:16 -0400, Bruce Momjian wrote:
> Well, if the table is created in the same transaction (which is the only
> case under consideration), no other sessions can write to the table so
> you are just writing the entire table on commit, rather than to the WAL.

The transaction can still write to many tables that way, and that could
mean many fsyncs.

Also, there may be a bunch of other transactions trying to write to the
WAL that have to wait as your transaction has to seek out to fsync the
data file and then seek back to the WAL.

Regards,Jeff Davis




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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: mosbench revisited
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: mosbench revisited