Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 358079FB2E2 for ; Tue, 31 Oct 2006 18:00:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 60183-01 for ; Tue, 31 Oct 2006 21:59:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fep01.ttnet.net.tr (mail.ttnet.net.tr [212.175.13.129]) by postgresql.org (Postfix) with ESMTP id B65CE9FA2BA for ; Tue, 31 Oct 2006 17:59:56 -0400 (AST) Received: from (unknown [192.168.8.101]) by AVGW-I-3.ttnet.net.tr with smtp id 1f6e_252481d2_692b_11db_95c4_001422175f4f; Tue, 31 Oct 2006 23:59:57 +0200 Received: from alamut ([85.97.15.248]) by fep01.ttnet.net.tr with ESMTP id <20061031215954.HPLK27706.fep01.ttnet.net.tr@alamut>; Tue, 31 Oct 2006 23:59:54 +0200 Received: from (dsl.dynamic859715248.ttnet.net.tr [85.97.15.248]) by AVGW-I-3.ttnet.net.tr with smtp id 1f3e_24394bc2_692b_11db_86ee_001422175f4f; Tue, 31 Oct 2006 23:59:54 +0200 Date: Tue, 31 Oct 2006 23:58:08 +0200 From: Volkan YAZICI To: George Pavlov , Andrew Sullivan , pgsql-sql@postgresql.org Subject: Re: record datatype comparisons Message-ID: <20061031215808.GD1911@alamut> References: <20061031212253.GD20809@phlogiston.dyndns.org> <8C5B026B51B6854CBE88121DBF097A8655CBFB@ehost010-33.exch010.intermedia.net> <20061031214927.GF12008@alvh.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061031214927.GF12008@alvh.no-ip.org> User-Agent: Mutt/1.4.2.1i X-NAI-Spam-Rules: 0 Rules triggered X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.755 tagged_above=0 required=5 tests=BAYES_00, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/261 X-Sequence-Number: 26650 On Oct 31 06:49, Alvaro Herrera wrote: > George Pavlov wrote: > > thanks fo the reply. i was misled by pgAdmin (1.6) giving both as > > "record" in the datatype (i thought "row" and "?column?" were just "best > > guess" column headers). > > > > so, if they are indeed differently shaped is there any way to make them > > be the same shape? > > > > note that this one also fails with the same error (one would think these > > are the "same shape"): > > > > select > > (select (1,2)) > > is distinct from > > (select (1,2)) > > ; > > This one works: > > alvherre=# select > row(1,2) > is distinct from > row(1,2) > ; > ?column? > ---------- > f > (1 fila) What's the difference between "SELECT (1, 2);" and "SELECT ROW(1, 2);"? Regards.