Re: OO Patch - Mailing list pgsql-hackers

From Chris Bitmead
Subject Re: OO Patch
Date
Msg-id 3929D768.DC3D35F3@nimrod.itg.telecom.com.au
Whole thread Raw
In response to Re: OO Patch  (Marten Feldtmann <marten@feki.toppoint.de>)
List pgsql-hackers
Oliver Elphick wrote:

> These are not subclasses but totally unrelated.  Suppose you had
> 
>    parent (id char(2))
>    child1 (a int4)
>    child2 (a timestamp)
> 
> and someone asks for
> 
>    select sum(a) from parent*
> 
> since the types are incompatible, the answer would be nonsense.

That query would be disallowed, for the reason you note. Ambigous
coloumns would need to be specified by class.attribute.


pgsql-hackers by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: Proposal for enhancements of privilege system
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64