pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dolafi, Tom <dolafit@janelia.hhmi.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: rtree/gist index taking enormous amount of space in 8.2.3
Date: Thu, 28 Jun 2007 12:08:37 -0400
Message-ID: <13616.1183046917@sss.pgh.pa.us> (raw)
In-Reply-To: <AE9860225100F14D87B26D0D4D6766DB46F246@EXCHANGE03.janelia.priv>
References: <AE9860225100F14D87B26D0D4D6766DB46F246@EXCHANGE03.janelia.priv>

"Dolafi, Tom" <dolafit@janelia.hhmi.org> writes:
> In version 8.1.5, I have an rtree index on a 1.5 GB table.  The size of
> this index is 500 MB.  After migrating to 8.2.3, the size of this index
> has increased to 35GB.  I've dropped are recreated the index and got the
> same result.  In 8.2.3 the index type is gist, does this have something
> to do with it?

We dropped rtree in 8.2 on the strength of experiments that seemed to
show gist was always better, but you seem to have an outlier case...

Can you tell us something about the distribution of the data values
(fmin and fmax)?  Is there anything particularly magic about the two
constants you're using in the boxes?  I suppose you've hit some bad
corner case in the gist box opclass, but it's not clear what.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <13616.1183046917@sss.pgh.pa.us>
Permalink:  ../13616.1183046917@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13616.1183046917@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dolafit@janelia.hhmi.org
  Subject: Re: rtree/gist index taking enormous amount of space in 8.2.3
  In-Reply-To: <13616.1183046917@sss.pgh.pa.us>

* 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