From: Volkan YAZICI <yazicivo@ttnet.net.tr>
To: George Pavlov <gpavlov@mynewplace.com>
To: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: record datatype comparisons
Date: Tue, 31 Oct 2006 23:58:08 +0200
Message-ID: <20061031215808.GD1911@alamut> (raw)
In-Reply-To: <20061031214927.GF12008@alvh.no-ip.org>
References: <20061031212253.GD20809@phlogiston.dyndns.org>
<8C5B026B51B6854CBE88121DBF097A8655CBFB@ehost010-33.exch010.intermedia.net>
<20061031214927.GF12008@alvh.no-ip.org>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: yazicivo@ttnet.net.tr, gpavlov@mynewplace.com, ajs@crankycanuck.ca
Subject: Re: record datatype comparisons
In-Reply-To: <20061031215808.GD1911@alamut>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox