From: | nolan(at)celery(dot)tssi(dot)com |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) |
Cc: | pgsql-general(at)postgresql(dot)org (pgsql general list) |
Subject: | Re: Optimizer failure on update w/integer column |
Date: | 2003-06-16 00:26:33 |
Message-ID: | 20030616002633.25539.qmail@celery.tssi.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> This is a unique index, right? Seems like the cost must be related to
> checking for uniqueness violations --- the index code has to plow
> through all the index entries with the same key, visit their associated
> heap tuples, confirm those tuples are dead (or being deleted by the
> current transaction). You could check this by seeing what the cost
> profile looks like with a nonunique index in place.
No, when I rebuilt the index it was NOT as a unique index.
> I'm not quite sure *why* it's happening though. 7.3 is supposed to have
> code in it to forestall indefinite growth of the number of heap visits
> that have to be made. Hmm ... were you doing the repeated passes all in
> a single transaction block, or were you allowing the previous updates to
> commit before you tried again?
I was not in a transaction block.
I tried it again, this time exiting psql between runs.
72 seconds the first time, 351 seconds the 2nd time, 420 the 3rd time,
351 the 4th time.
Can I do anything further to help track this down?
--
Mike Nolan
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-06-16 00:30:17 | Re: Optimizer failure on update w/integer column |
Previous Message | Markus Bertheau | 2003-06-15 23:53:34 | Re: [HACKERS] UTF8 and KOI8 mini-howto |