Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA69281 for ; Thu, 23 Sep 1999 11:43:38 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id LAA17079; Thu, 23 Sep 1999 11:40:24 -0400 (EDT) From: Bruce Momjian Message-Id: <199909231540.LAA17079@candle.pha.pa.us> Subject: Re: [SQL] weird exists behaviour In-Reply-To: <14389.938099767@sss.pgh.pa.us> from Tom Lane at "Sep 23, 1999 11:16:07 am" To: Tom Lane Date: Thu, 23 Sep 1999 11:40:24 -0400 (EDT) CC: Daniel Lopez , pgsql-sql@hub.org X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Note to hackers: here is another example of people getting confused > by automatic addition of FROM clauses. The same query can behave > differently depending on whether it is a sub-query or not: a free > table name might get bound to a table of the outer query, or generate > an implicit FROM clause in the standalone case, yielding very different > result sets. I think we need to issue an elog(NOTICE) when we create a table entry on the fly. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026