Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id XAA02969 for postgres-redist; Tue, 4 Oct 1994 23:02:43 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199410050602.XAA02969@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.37.53]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id XAA02959 for <postgres@postgres.Berkeley.EDU>; Tue, 4 Oct 1994 23:02:42 -0700
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.9/8.1B) with SMTP id XAA20567; Tue, 4 Oct 1994 23:02:34 -0700
Message-Id: <199410050602.XAA20567@faerie.CS.Berkeley.EDU>
X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: Robert.Patrick@cs.cmu.edu
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: More on: Limit to where clause length? 
Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki)
In-reply-to: Your message of Tue, 4 Oct 1994 22:10:12 -0400 (EDT) 
	     <ciYUg4K00hMdAUgLxC@cs.cmu.edu> 
Date: Tue, 04 Oct 94 23:02:28 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Tue, 04 Oct 94 23:02:43 -0700
Resent-XMts: smtp

Robert.Patrick@cs.cmu.edu writes:
> It appears that I can execute any combination of and's and or's in a
> where clause as long as I don't access more than 3 tables.  The minute I
> try to access 4 tables, even in a simpler query, Postgres simply returns
> an empty table, even if there are tuples which match the query.

src/examples/chapter15 contains several four-way joins.

there is no hardwired limit on the number of tables that you can 
reference in a query, though (as recently mentioned) there are some 
8kb buffers awaiting the unwary.
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

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