Re: Reduce WAL logging of INSERT SELECT - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Reduce WAL logging of INSERT SELECT
Date
Msg-id 1312652633.10087.13.camel@jdavis
Whole thread Raw
In response to Re: Reduce WAL logging of INSERT SELECT  (Bruce Momjian <bruce@momjian.us>)
List 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 by date:

Previous
From: Jeff Janes
Date:
Subject: Re: mosbench revisited
Next
From: Jeff Janes
Date:
Subject: Re: mosbench revisited