X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id EFD009FB1C0 for ; Fri, 15 Sep 2006 06:22:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 43326-03 for ; Fri, 15 Sep 2006 06:22:50 -0300 (ADT) X-Greylist: delayed 00:06:40.210736 by SQLgrey- Received: from mail3.embl-heidelberg.de (emblmail2.EMBL-Heidelberg.DE [194.94.44.205]) by postgresql.org (Postfix) with SMTP id E29CA9FA605 for ; Fri, 15 Sep 2006 06:22:49 -0300 (ADT) Received: (qmail 31156 invoked by uid 1001); 15 Sep 2006 09:16:07 -0000 Received: from 192.54.41.15 by mail3 (envelope-from , uid 101) with qmail-scanner-2.01 (clamdscan: 0.88.4/1884. uvscan: v4.4.00/v4851. spamassassin: 3.1.2. Clear:RC:1(192.54.41.15):. Processed in 0.026562 secs); 15 Sep 2006 09:16:07 -0000 Received: from unknown (HELO webmail.embl-heidelberg.de) (192.54.41.15) by 0 with SMTP; 15 Sep 2006 09:16:07 -0000 Received: by webmail.embl-heidelberg.de (Postfix, from userid 252) id 07CA65C206; Fri, 15 Sep 2006 11:16:07 +0200 (CEST) Received: from fw11v.EMBL-Heidelberg.DE (fw11v.EMBL-Heidelberg.DE [194.94.44.4]) by webmail.embl.de (Horde) with HTTP for ; Fri, 15 Sep 2006 11:16:06 +0200 Message-ID: <20060915111606.l3dwaqkxhz0gs0kw@webmail.embl.de> Date: Fri, 15 Sep 2006 11:16:06 +0200 From: gould@embl.de To: pgsql-sql@postgresql.org Subject: Omission of 'FROM' ? diff between pgsql 7.4.1 and pgsql 8.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.961 tagged_above=0 required=5 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200609/107 X-Sequence-Number: 26318 hi I am upgrading from pgsql 7.4.1 to pgsql 8.1.4. However, some of the application queries won't run on the newer version of pgsql. An example of the type of query is: SELECT protein_external_links.protein_id, external_links.external_id, proteins.public_name WHERE protein_external_links.external_link_id = external_links.id and protein_external_links.protein_id = proteins.id and external_links.external_database_id != 8 and external_links.external_id_type_id = 2; on pgsql7.4.1 what tables need to be queried seems to be implicitly deduced from the rest of the SQL without the need for a FROM clause. However, on pgsql 8.1.4 the following error is given: ERROR: missing FROM-clause entry for table "protein_external_links" Is there some query optimization config setting I can set in pgsql 8.1.4 to fix this problem rather than having to change the queries in the code? I've read over the changes between pgsql 7 and pgsql 8 but nothing seems to stand out to me as referencing this problem. Anyone with more knowledge that can point me in the right direction? Thanks Kate