Re: newsbie: ORDBMS vs RDBMS

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: newsbie: ORDBMS vs RDBMS
Дата
Msg-id m38ygi901w.fsf@wolfe.cbbrowne.com
обсуждение исходный текст
Ответ на newsbie: ORDBMS vs RDBMS  ("kostas" <karadamoglou_k@yahoo.gr>)
Список pgsql-general
After takin a swig o' Arrakan spice grog, karadamoglou_k@yahoo.gr ("kostas") belched out:
> I am new to Object Relational DBMS like Postgresql. I want to ask, What is
> the key benefits of ORDBMS over RDBMS. Do you know any link with relevant
> informations. Thank you in advance.

Well, the "key" thing is that PostgreSQL may be extended to support
custom object types.

For instance, it does not, out of the box, support a complex number
type.  (e.g. - values of the form a + b * sqrt(-1)).  You may create a
custom object type to represent complex numbers, and, if you define a
suitable set of operators on it, use "complex" values much as you
would real numbers.

More interesting, perhaps, might be to look at data types that
resemble IP addresses.  PostgreSQL supports a number of network
address types as follows:

http://www.postgresql.org/docs/7.4/interactive/datatype-net-types.html

These types, by being native 'objects,' offer various benefits over
just using a 'dumb string,' notably that:

 a) They offer strong input type checking;

 b) Internally, they can use compact types, such as encoding IP
    addresses into binary integers.  That means that they can be
    manipulated very efficiently by the database engine.

People have created custom object types for such things as:
 - 3D cubes, for visualization applications;
 - UUIDs/GUIDs, to support efficient handling of unique object
   identifiers;
 - ISBN and ISSN numbers (book identifiers)

Efficiency + reliability; strikes me as a win...

The other "object" thing is that PostgreSQL stored procedures offer
what pretty much amounts to multiple dispatch, where you may have a
bunch of procedures with the same name that deal with arguments of
varying types.  It can be a source of grave confusion if you abuse it,
but can be very useful...
--
"cbbrowne","@","ntlug.org"
http://www.ntlug.org/~cbbrowne/linuxxian.html
'You know you've  been hacking too long  if, when someone  asks you if
you have a son, you reply, "No, but I've got a Symbolics 3630".'

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: PostgreSQL 7.4.2 initdb problem
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: List Removal