pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Manfred Koizar <mkoi-pg@aon.at>
To: Kendrick C. Wilson <kendrick_wilson@hotmail.com>
Cc: chriskl@familyhealth.com.au
Cc: pgsql-performance@postgresql.org
Subject: Re: postgresql meltdown on PlanetMath.org
Date: Wed, 19 Mar 2003 20:52:21 +0100
Message-ID: <00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.com> (raw)
In-Reply-To: <BAY1-F1026QR7j1HaKt0003f672@hotmail.com>
References: <BAY1-F1026QR7j1HaKt0003f672@hotmail.com>

On Tue, 18 Mar 2003 09:19:44 -0600, "Kendrick C. Wilson"
<kendrick_wilson@hotmail.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



view thread (39+ messages)  latest in thread

Message-ID: <00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.com>
Permalink:  ../00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.com/
Also on:    postgresql.org/message-id/00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.com

 · 

reply

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-performance@postgresql.org
  Cc: mkoi-pg@aon.at, kendrick_wilson@hotmail.com, chriskl@familyhealth.com.au
  Subject: Re: postgresql meltdown on PlanetMath.org
  In-Reply-To: <00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.com>
  References: <BAY1-F1026QR7j1HaKt0003f672@hotmail.com> <00ih7vcuu5gf29oep2hi9sctrnui061ogh@4ax.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