pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Garamond <davidgaramond@gmail.com>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Array: comparing first N elements?
Date: Tue, 12 May 2009 15:42:22 +0700
Message-ID: <7c33d060905120142t75d1c887jfe62f21361eac178@mail.gmail.com> (raw)
In-Reply-To: <200905121138.33188.achill@matrix.gatewaynet.com>
References: <7c33d060905120105y74b0483eyf5d94c07912a0702@mail.gmail.com>
	<200905121138.33188.achill@matrix.gatewaynet.com>

2009/5/12 Achilleas Mantzios <achill@matrix.gatewaynet.com>

> you would want to look at the intarray contrib package for index suppor and
> many other goodies,
> also you might want to write fucntions first(parents), last(parents) and
> then have an index
> on those as well.
> This way searching for the direct children of a node is very fast.


Thanks for the suggestions! Index support is exactly what I'm looking for.
Will look into intarray.

Regards,
dave

view thread (6+ messages)

Message-ID: <7c33d060905120142t75d1c887jfe62f21361eac178@mail.gmail.com>
Permalink:  ../7c33d060905120142t75d1c887jfe62f21361eac178@mail.gmail.com/
Also on:    postgresql.org/message-id/7c33d060905120142t75d1c887jfe62f21361eac178@mail.gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: davidgaramond@gmail.com, achill@matrix.gatewaynet.com
  Subject: Re: Array: comparing first N elements?
  In-Reply-To: <7c33d060905120142t75d1c887jfe62f21361eac178@mail.gmail.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