Re: types inheritance

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: types inheritance
Дата
Msg-id 199908041827.OAA01034@candle.pha.pa.us
обсуждение исходный текст
Список pgsql-general
> 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

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

Предыдущее
От: Michael Simms
Дата:
Сообщение: Re: [GENERAL] ElephantWear Now Available...
Следующее
От: Charles Tassell
Дата:
Сообщение: Re: [GENERAL] libpq.so open failed