Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0348C9FB845 for ; Mon, 6 Aug 2007 06:54:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 90435-04 for ; Mon, 6 Aug 2007 06:54:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by postgresql.org (Postfix) with ESMTP id 20B719FB7CD for ; Mon, 6 Aug 2007 06:54:54 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d32so2721007pye for ; Mon, 06 Aug 2007 02:54:53 -0700 (PDT) Received: by 10.65.203.3 with SMTP id f3mr8422370qbq.1186394092550; Mon, 06 Aug 2007 02:54:52 -0700 (PDT) Received: by 10.65.185.15 with HTTP; Mon, 6 Aug 2007 02:54:52 -0700 (PDT) Message-ID: <881035ea0708060254w32fa164di32d3579c2b0ebf14@mail.gmail.com> Date: Mon, 6 Aug 2007 02:54:52 -0700 From: "Sven Clement" To: "Heikki Linnakangas" Subject: Re: Performance problems with large telemetric datasets on 7.4.2 Cc: "Tom Lane" , "Andrew Kroeger" , "Mark Lewis" , pgsql-performance@postgresql.org In-Reply-To: <46B6EF0D.6030501@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_96518_8447292.1186394092506" References: <881035ea0708030652r37b25a86g61e88e1f5e95eab2@mail.gmail.com> <1186150836.19184.194.camel@archimedes> <881035ea0708030857s621af020r4d3d7b994e2ca9a3@mail.gmail.com> <46B39A77.8050105@sprocks.gotdns.com> <4770.1186180449@sss.pgh.pa.us> <881035ea0708041303h4ea256b3q4b40c5291f8cd3b7@mail.gmail.com> <46B5F5C7.1070901@enterprisedb.com> <881035ea0708060010u1bbb4b58r57bdf6f51b12f7d9@mail.gmail.com> <46B6EF0D.6030501@enterprisedb.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/41 X-Sequence-Number: 26171 ------=_Part_96518_8447292.1186394092506 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok thanks everybody for the calrification, after all now I allready learned something new... ;) My employer is currently thinking about migration to 8.2.x because of your feedback, so I think that the problem could be resolved... ;) Thanks to everyone... Sven Clement 2007/8/6, Heikki Linnakangas : > > Sven Clement wrote: > > Partially I found that one in the PostgreSQL Documentation for the > > 7.x.xversions under the command REINDEX where they claim that you > > should run a > > reindex under certain circumstances and for my comprehension this says > that > > with some access pattern (as ours (major writes / one big delete per > day)) > > the index may be corrupted or otherwise not really useful. > > Up to 7.3, periodical REINDEX was needed to trim down bloated indexes. > Since 7.4, empty index pages are recycled so that's no longer necessary. > You can still end up with larger than necessary indexes in recent > versions under unusual access patterns, like if you delete all but a few > index tuples from each index page, but it's rare in practice. And it's > not unbounded growth like in <= 7.3. > > In any case, the indexes won't become corrupt. > > -- > Heikki Linnakangas > EnterpriseDB http://www.enterprisedb.com > -- DSIGN.LU Sven Clement +352 621 63 21 18 sven@dsign.lu www.dsign.lu ------=_Part_96518_8447292.1186394092506 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok thanks everybody for the calrification, after all now I allready learned something new... ;)

My employer is currently thinking about migration to 8.2.x because of your feedback, so I think that the problem could be resolved... ;)

Thanks to everyone...

Sven Clement

2007/8/6, Heikki Linnakangas <heikki@enterprisedb.com>:
Sven Clement wrote:
> Partially I found that one in the PostgreSQL Documentation for the
> 7.x.xversions under the command REINDEX where they claim that you
> should run a
> reindex under certain circumstances and for my comprehension this says that
> with some access pattern (as ours (major writes / one big delete per day))
> the index may be corrupted or otherwise not really useful.

Up to 7.3, periodical REINDEX was needed to trim down bloated indexes.
Since 7.4, empty index pages are recycled so that's no longer necessary.
You can still end up with larger than necessary indexes in recent
versions under unusual access patterns, like if you delete all but a few
index tuples from each index page, but it's rare in practice. And it's
not unbounded growth like in <= 7.3.

In any case, the indexes won't become corrupt.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com



--
DSIGN.LU
Sven Clement
+352 621 63 21 18
sven@dsign.lu

www.dsign.lu ------=_Part_96518_8447292.1186394092506--