Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id PAA09755 for postgres-redist; Sat, 6 Aug 1994 15:42:52 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199408062242.PAA09755@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from Princeton.EDU (root@Princeton.EDU [128.112.128.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id PAA09745 for <postgres@postgres.berkeley.edu>; Sat, 6 Aug 1994 15:42:51 -0700
Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.111/princeton)
	id AA09637; Sat, 6 Aug 94 18:42:43 -0400
Received: from cs (trek.Princeton.EDU) by cs.Princeton.EDU (4.1/1.105)
	id AA00429; Sat, 6 Aug 94 18:42:42 EDT
From: Pei Cao <pc@cs.Princeton.EDU>
Received: by cs (5.65/CS-Client)
        id AA17476; Sat, 6 Aug 1994 18:42:42 -0400
Date: Sat, 6 Aug 1994 18:42:42 -0400
Message-Id: <9408062242.AA17476@cs>
To: postgres@postgres.Berkeley.EDU
Subject: how is a three-way join implemented?
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Sat, 06 Aug 94 15:42:52 -0700
Resent-XMts: smtp

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