From: Jerry Sievers <jerry@jerrysievers.com>
To: pgsql-admin@postgresql.org
Subject: Re: Curious run-away index build on upgrade to 8.1.3
Date: 16 Mar 2006 17:03:10 -0500
Message-ID: <m3irqekpy9.fsf@prod01.jerrysievers.com> (raw)
References: <m3pskmmp0a.fsf@prod01.jerrysievers.com>
<16725.1142523155@sss.pgh.pa.us>
<m37j6umlbp.fsf@prod01.jerrysievers.com>
<18502.1142533042@sss.pgh.pa.us>
<m3wteukyu7.fsf@prod01.jerrysievers.com>
<19992.1142541663@sss.pgh.pa.us>
Well, I'll be dipped! More below;
Tom Lane <tgl@sss.pgh.pa.us> writes:
> On further analysis, it seems the problem is dependent on the exact
> ordering of the inputs to the qsort function. So not only do you need
> maintenance_work_mem to be large enough that the code will try to use
> qsort, but the physical order of the rows in the table matters.
> I suspect that you are testing on an 8.0 table with a different physical
> row order --- if you drop the table and reload it from the same dump you
> loaded into 8.1, does it get slow?
Tom, your theory is correct. If we had to build that index from
scratch on 8.0, with the data ordered as it was when I made the
original dump, it would have stalled all the same.
I just reproduced this on an 8.0.3 box.
FYI
--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jerry@jerrysievers.com
Subject: Re: Curious run-away index build on upgrade to 8.1.3
In-Reply-To: <m3irqekpy9.fsf@prod01.jerrysievers.com>
References: <m3pskmmp0a.fsf@prod01.jerrysievers.com> <16725.1142523155@sss.pgh.pa.us> <m37j6umlbp.fsf@prod01.jerrysievers.com> <18502.1142533042@sss.pgh.pa.us> <m3wteukyu7.fsf@prod01.jerrysievers.com> <19992.1142541663@sss.pgh.pa.us> <m3irqekpy9.fsf@prod01.jerrysievers.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox