Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 39DCD6334C7 for ; Wed, 11 Nov 2009 00:37:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 87597-01 for ; Wed, 11 Nov 2009 04:36:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B5717632AFB for ; Wed, 11 Nov 2009 00:36:55 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id nAB4aorM027603; Tue, 10 Nov 2009 23:36:50 -0500 (EST) To: "ALLs.org" cc: pgsql-sql@postgresql.org Subject: Re: ORDB and dot-notation query In-reply-to: <17189cdf0911102011t16863599qa68318b25d2b86dc@mail.gmail.com> References: <17189cdf0911102011t16863599qa68318b25d2b86dc@mail.gmail.com> Comments: In-reply-to "ALLs.org" message dated "Wed, 11 Nov 2009 05:11:24 +0100" Date: Tue, 10 Nov 2009 23:36:50 -0500 Message-ID: <27602.1257914210@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/38 X-Sequence-Number: 33389 "ALLs.org" writes: > select * from clients WHERE > address.country.tld = 'de' > address and country are custom table and TYPE > I receive error: > ERROR: schema "adress" does not exist* Yup, because the SQL standard says that a.b.c means column c in table b in schema a. You need to write (address.country).tld to get the parser started in the right direction. regards, tom lane