Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA17002 for ; Sat, 31 Jul 1999 12:01:19 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id LAA13524; Sat, 31 Jul 1999 11:58:30 -0400 (EDT) To: jens@jens.de cc: Bruce Momjian , pgsql-sql@postgreSQL.org Subject: Re: [SQL] Outer Joins, Foreign keys, subselects In-reply-to: Your message of Sat, 31 Jul 1999 13:56:47 +0000 (CEST) Date: Sat, 31 Jul 1999 11:58:30 -0400 Message-ID: <13522.933436710@sss.pgh.pa.us> From: Tom Lane Jens Glaser writes: >> We have subselects, and plan to add outer joins and foreign keys in 6.6. > well, but AFAIK not of the form e.g. > select blabla from (select * from asdasd ..) t1, > (select * from bsdfsd ..) t2, where t1.pkey=t2.pkey > .. > (subselects in the target list). SCR! Actually, Jan is saying that that's exactly what he needs to make rules work Really Right. If we add subselect RTEs for the rule rewriter, I see no reason that we couldn't provide them for direct use too. Might not happen for 6.6, but maybe the version after. regards, tom lane