Re: types inheritance

Started by Bruce Momjianover 26 years ago1 messagesgeneral
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Dear Bruce,

many thanks for your answer.

Yes, I wanted to know if it is / will be also possible to have types inherited
from other primitive types. This is, for instance, what happens in Oracle and
SpatialWare. In these databases I am able to write different types of
geometric primitives in the same column of a table.

A type point or circle or line inherits from some geometric superclass (say
GEO). The consequence is that if one wants to store points, circles,... in the
same atribute he just need to declare this atribute as beeing of type GEO.

This would probably make my life easier. I looked for inheritance in
postgresql, but I only found it for tables.

Do you understand that?

Yes. I am CC'ing this to general to see if anyone has comments.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026