Re: record datatype comparisons

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: George Pavlov <gpavlov(at)mynewplace(dot)com>, Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-sql(at)postgresql(dot)org
Subject: Re: record datatype comparisons
Date: 2006-10-31 21:58:08
Message-ID: 20061031215808.GD1911@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Curtis Scheer 2006-10-31 22:04:10 Re: Table Relationships
Previous Message Alvaro Herrera 2006-10-31 21:49:27 Re: record datatype comparisons