Re: pg_xlog becomes extremely large during CREATE INDEX - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_xlog becomes extremely large during CREATE INDEX
Date
Msg-id 25693.1084553066@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_xlog becomes extremely large during CREATE INDEX  ("Jeffrey W. Baker" <jwbaker@acm.org>)
Responses Re: pg_xlog becomes extremely large during CREATE INDEX
List pgsql-general
"Jeffrey W. Baker" <jwbaker@acm.org> writes:
> On Thu, 2004-05-13 at 21:00, Tom Lane wrote:
>> I tried this locally, and what I see happening is that a checkpoint
>> process starts shortly after the CREATE INDEX begins whomping out the
>> index data --- but it doesn't finish until after the CREATE INDEX does.
>> AFAICS there is not any sort of locking problem, it's just that the
>> CREATE INDEX is chewing all the I/O bandwidth.  If we could get some
>> more checkpoints pushed through then the xlog would get truncated, but
>> it's not happening.
>>
>> I'm running this on a development machine with an ok CPU and junk
>> consumer-grade-IDE disk drive, so lack of I/O bandwidth is hardly
>> surprising; can anyone confirm the observation on better hardware?

> We're running it on some pretty manly hardware (dual opterons, 8gb main
> memory, 4-way SATA RAIDs), so it happens on both ends of the spectrum.

What I wanted to know was whether you see a checkpoint process
persisting throughout the write-the-index phase of the CREATE INDEX.
There probably will be one at pretty nearly all times, but is it
always the same one (same PID)?

            regards, tom lane

pgsql-general by date:

Previous
From: "Jeffrey W. Baker"
Date:
Subject: Re: pg_xlog becomes extremely large during CREATE INDEX
Next
From: "Ed L."
Date:
Subject: Re: dbmirror