Re: newsbie: ORDBMS vs RDBMS

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: newsbie: ORDBMS vs RDBMS
Date: 2004-04-26 16:27:39
Message-ID: m38ygi901w.fsf@wolfe.cbbrowne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

After takin a swig o' Arrakan spice grog, karadamoglou_k(at)yahoo(dot)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".'

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Holger Klawitter 2004-04-26 16:39:28 Re: Ordering YYYY MM DD in reverse chrono order
Previous Message Don Isgitt 2004-04-26 16:09:25 Help on "unexpected EOF..client reset by peer" errors