Re: slow commits with heavy temp table usage in 8.4.0 - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: slow commits with heavy temp table usage in 8.4.0
Date
Msg-id 4A79A551020000250002947C@gw.wicourts.gov
Whole thread Raw
In response to Re: slow commits with heavy temp table usage in 8.4.0  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: slow commits with heavy temp table usage in 8.4.0
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Todd A. Cook" <tcook@blackducksoftware.com> writes:
>> I've noticed that on 8.4.0, commits can take a long time when a
>> temp table is repeatedly filled and truncated within a loop.
> The commit time doesn't seem tremendously out of line, but it looks
> like there's something O(N^2)-ish in the function execution.  Do
> you see a similar pattern?  With so many temp files there could well
> be some blame on the kernel side.  (This is a Fedora 10 box.)
This sounds very similar to my experience here:
http://archives.postgresql.org/pgsql-hackers/2008-11/msg01472.php
Depending on what sort of RAID controller caching is present, a BBU
cache might be containing the problem up to some threshold.  Perhaps
it's not so much O(N^2) as O(N)-<someconstant>, with a min of zero?
-Kevin


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: GRANT ON ALL IN schema
Next
From: Josh Berkus
Date:
Subject: Re: Alpha Releases: Docs?