Re: [HACKERS] strange behavior of UPDATE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] strange behavior of UPDATE
Date
Msg-id 1649.927591604@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] strange behavior of UPDATE  (Edmund Mergl <E.Mergl@bawue.de>)
Responses Re: [HACKERS] strange behavior of UPDATE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Edmund Mergl <E.Mergl@bawue.de> writes:
> The table is filled with 1.000.000 rows of random data
> and on every field an index is created.

BTW, do you happen to know just how random the data actually is?
I noticed that the update queryupdate bench set k500k = k500k + 1 where k100 = 30;
updates 10,000 rows.  If this "random" data actually consists of
10,000 repetitions of only 100 distinct values in every column,
then a possible explanation for the problem would be that our
btree index code isn't very fast when there are large numbers of
identical keys.  (Mind you, I have no idea if that's true or not,
I'm just trying to think of likely trouble spots.  Anyone know
btree well enough to say whether that is likely to be a problem?)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Edmund Mergl
Date:
Subject: Re: [HACKERS] strange behavior of UPDATE
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Updated 6.5 HISTORY