Skip site navigation (1) Skip section navigation (2)

Re: postgresql meltdown on PlanetMath.org

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: "Kendrick C(dot) Wilson" <kendrick_wilson(at)hotmail(dot)com>
Cc: chriskl(at)familyhealth(dot)com(dot)au, pgsql-performance(at)postgresql(dot)org
Subject: Re: postgresql meltdown on PlanetMath.org
Date: 2003-03-19 19:52:21
Message-ID: 00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.com (view raw or flat)
Thread:
Lists: pgsql-performance
On Tue, 18 Mar 2003 09:19:44 -0600, "Kendrick C. Wilson"
<kendrick_wilson(at)hotmail(dot)com> wrote:
>If there are multiple values, the location of the first record is found in 
>the indexFile.
>
>Then dataFile is scanned until this != 'whatever';

Nice, but unfortunately not true for Postgres.  When you do the first
UPDATE after CLUSTER the new version of the changed row(s) are written
to the end of the dataFile (heap relation in Postgres speech).  So the
*index* has to be scanned until this != 'whatever'.

>Clustering is good for queries that return multiple [rows with the same search] values.

Yes.  With clustering you can expect that most of the tuples you want
are near to each other and you find several of them in the same page.

Servus
 Manfred

In response to

pgsql-performance by date

Next:From: Torsten SchulzDate: 2003-03-20 18:53:27
Subject: Make PGSQL faster
Previous:From: LodovicoDate: 2003-03-19 02:28:02
Subject: Re: ABOUT YOUR CREDIT......... lquwj

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group