agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: kilin@cs.UMD.EDU
To: postgres@postgres.Berkeley.EDU
Subject: Question on R-trees
Date: Thu, 15 Dec 1994 10:22:34 -0500
Message-ID: <199412151522.KAA05411@twinkie.cs.UMD.EDU> (raw)


Hi,

Got a couple of questions on R-trees on Postgres:

Suppose I have a relation and index defined as :

create rel1 (code = int4, bound = box)\g
define index rel1ind on rel1 using rtree (bound box_ops)\g

(1) Does it mean that everytime I query using the box operation (like <<, &<
    etc.) the Rtree will be used to access the tuples? Can I force the
    system to use the Rtree?

(2) Will the output be ordered in anyway beacuase of the use of the index?
    I try to run a couple of querys and the output is ordered as the order
    of inputting them. Is it supposed to be that way?

(3) (A dumb question), for the box datatype, is a box constant specified
    by : "(xlow, ylow, xhigh, yhigh)"::box ?

Thanks a lot

David Lin

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/



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: postgres@postgres.berkeley.edu
  Cc: kilin@cs.UMD.EDU
  Subject: Re: Question on R-trees
  In-Reply-To: <199412151522.KAA05411@twinkie.cs.UMD.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox