agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Pei Cao <pc@cs.Princeton.EDU>
To: postgres@postgres.Berkeley.EDU
Subject: how is a three-way join implemented?
Date: Sat, 6 Aug 1994 18:42:42 -0400
Message-ID: <9408062242.AA17476@cs> (raw)

Hi, I am new to Postgres, and would appreciate if anyone can give me some help
on this.

Suppose I have a three way join:

retrive into temp (small.all, large1.all, large2.all) 
where (small.key1 == large1.key1) and (large2.key1 == large1.key1)

where the size of "small" is 1/10 of that of "large1" and "large2".  

Does Postgres join small and large1 first, then join the result relation with 
large2?  Or does it join all three of them together at the same time, if so,
how exactly does it do that?

Thanks a lot!

Pei Cao
CS Dept.
Princeton Universtiy

==============================================================================
   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.
==============================================================================



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: pc@cs.Princeton.EDU
  Subject: Re: how is a three-way join implemented?
  In-Reply-To: <9408062242.AA17476@cs>

* 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