pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Lang <dlang@invendra.net>
Cc: Ron <rjpeace@earthlink.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: [GENERAL] Creation of tsearch2 index is very
Date: Sat, 21 Jan 2006 15:55:49 -0500
Message-ID: <1749.1137876949@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.62.0601211204300.4943@qnivq.ynat.uz>
References: <26153.1137784469@sss.pgh.pa.us>
	<20060120201036.GE31908@svana.org>
	<26583.1137788505@sss.pgh.pa.us>
	<20060120205132.GF31908@svana.org>
	<26958.1137791955@sss.pgh.pa.us>
	<20060120213754.GG31908@svana.org>
	<7.0.1.0.2.20060120174141.039b03e8@earthlink.net>
	<6111.1137797436@sss.pgh.pa.us>
	<20060120225751.GA27230@uio.no>
	<6532.1137801157@sss.pgh.pa.us>
	<20060121000519.GA29755@uio.no>
	<6743.1137802990@sss.pgh.pa.us>
	<7.0.1.0.2.20060121064930.03aba810@earthlink.net>
	<18771.1137868073@sss.pgh.pa.us>
	<Pine.LNX.4.62.0601211204300.4943@qnivq.ynat.uz>

David Lang <dlang@invendra.net> writes:
> On Sat, 21 Jan 2006, Tom Lane wrote:
>> Ron <rjpeace@earthlink.net> writes:
>>> Maybe we are over thinking this.  What happens if we do the obvious
>>> and just make a new page and move the "last" n/2 items on the full
>>> page to the new page?
>> 
>> Search performance will go to hell in a handbasket :-(.  We have to make
>> at least some effort to split the page in a way that will allow searches
>> to visit only one of the two child pages rather than both.

> does the order of the items within a given page matter?

AFAIK the items within a GIST index page are just stored in insertion
order (which is exactly why Ron's suggestion above doesn't work well).
There's no semantic significance to it.  It's only when we have to split
the page that we need to classify the items more finely.

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <1749.1137876949@sss.pgh.pa.us>
Permalink:  ../1749.1137876949@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1749.1137876949@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, dlang@invendra.net, rjpeace@earthlink.net
  Subject: Re: [GENERAL] Creation of tsearch2 index is very
  In-Reply-To: <1749.1137876949@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