R-tree and start/end queries

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: R-tree and start/end queries
Date: 2005-09-21 17:52:40
Message-ID: BF571628.EF19%sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have a table like:

Create table gf (
pk serial,
start int,
end int,
gf varchar
);

I want to do queries along the lines of:

"find all gf that overlap with (10000,20000)" or
"find all gf that overlap with each other"

And others. I have read over the documentation, but I still remain unclear
about how to implement R-tree indexing in this situation. Any suggestions?

Thanks,
Sean

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-09-21 18:38:37 Re: R-tree and start/end queries
Previous Message A. Kretschmer 2005-09-21 13:42:50 Re: How to add column from old_table to new_table?