Re: record datatype comparisons

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: record datatype comparisons
Дата
Msg-id 20061031214927.GF12008@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: record datatype comparisons  ("George Pavlov" <gpavlov@mynewplace.com>)
Ответы Re: record datatype comparisons
Список pgsql-sql
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.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Volkan YAZICI
Дата:
Сообщение: Re: record datatype comparisons
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: record datatype comparisons