Re: Composite datatypes, dynamic member fields

Поиск
Список
Период
Сортировка
От ."@babolo.ru
Тема Re: Composite datatypes, dynamic member fields
Дата
Msg-id 200205102017.AAA15662@aaz.links.ru
обсуждение исходный текст
Ответ на Composite datatypes, dynamic member fields  (Robert Staudinger <r.staudinger@seminarshop.com>)
Ответы Re: Composite datatypes, dynamic member fields
Список pgsql-interfaces
Robert Staudinger writes:
> I'm planning to build some kind of simple object oriented database and
> came across PostgreSQL because of it's nearly unlimited ways of
> extensibility.
> The documentation is really good an I learned a lot about composite
> datatypes, how to program them in c, create indices ... from the "Server
> Programming" section of the "Developer Manual".
> The problem in my case is that I don't know the names of the attributes
> beforehand so I can't do a table bases mapping with one table for each
> type of object ("class"). So I thought It would maybe be possible to
> store the objects always in the same composed datatype - with "dynamic
> member fields".
I use inheritance in such a case.
(see INHERITS in CREATE TABLE)
Table with common columns as a base class
and different tables for classes with
inherited base class.
Multiple and multilevel inheritanse possible.

> Ok this may be completely insane but ...
> 
> Maybe you could just tell me if it's worth to dig deeper.
> 
> Robert Staudinger
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
> 


-- 
@BABOLO      http://links.ru/


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

Предыдущее
От: "Jim Bowery"
Дата:
Сообщение: dbconnect Argument Format?
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: PgAccess directory structure