pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: George Pavlov <gpavlov@mynewplace.com>
Cc: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: record datatype comparisons
Date: Tue, 31 Oct 2006 18:49:27 -0300
Message-ID: <20061031214927.GF12008@alvh.no-ip.org> (raw)
In-Reply-To: <8C5B026B51B6854CBE88121DBF097A8655CBFB@ehost010-33.exch010.intermedia.net>
References: <20061031212253.GD20809@phlogiston.dyndns.org>
	<8C5B026B51B6854CBE88121DBF097A8655CBFB@ehost010-33.exch010.intermedia.net>

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)

Is that what you're after?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (10+ messages)  latest in thread

Message-ID: <20061031214927.GF12008@alvh.no-ip.org>
Permalink:  ../20061031214927.GF12008@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20061031214927.GF12008@alvh.no-ip.org

 · 

reply

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: alvherre@commandprompt.com, gpavlov@mynewplace.com, ajs@crankycanuck.ca
  Subject: Re: record datatype comparisons
  In-Reply-To: <20061031214927.GF12008@alvh.no-ip.org>

* 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