Re: record datatype comparisons

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
Cc: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-sql(at)postgresql(dot)org
Subject: Re: record datatype comparisons
Date: 2006-11-01 21:07:21
Message-ID: 20061101210721.GI25856@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Nov 01, 2006 at 11:00:04PM +0200, Volkan YAZICI wrote:
> But there should be a way to reach the types of the attributes of the
> record data type. Otherwise, how would it be possible to place it into
> another tuple as an attribute.

Well, surely there is, but that has to happen at assignment time,
AFAICT. So you can decide what the record is on the basis of the
datatype, but you can't write an equality operator, because you don't
know what the general rule is going to be in advance. At least,
that's as far as I'm able to understand how to do this. But I'm
really past my Latin at this point, because even if I looked at the
code that supports the record type, I wouldn't understand it.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
The whole tendency of modern prose is away from concreteness.
--George Orwell

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Simon Riggs 2006-11-02 10:27:44 Re: [HACKERS] Case Preservation disregarding case
Previous Message Volkan YAZICI 2006-11-01 21:00:04 Re: record datatype comparisons