Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objects in PostgreSQL

PostgreSQL was the first database that introduced objects in relational systems (serialization)... and that is all what I know about objects and PostgreSQL. I have been doing some research, but frankly didn't find anything good. Is there any good articles/books about it?

like image 649
Lukasz Madon Avatar asked Jan 15 '11 14:01

Lukasz Madon


People also ask

What does the object part mean for PostgreSQL?

An ORDBMS is primarily a relational database that supports some object oriented features. PostgreSQL or Postgres (not PostGres) supports table inheritance and function overloading. Both are features usually attributed to object oriented languages.

Does PostgreSQL support object?

PostgreSQL is an object-relational database management system ( ORDBMS ) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. POSTGRES pioneered many concepts that only became available in some commercial database systems much later.

What are objects in DB?

What Does Database Object Mean? A database object in a relational database is a data structure used to either store or reference data. The most common object that people interact with is the table. Other objects are indexes, stored procedures, sequences, views and many more.


2 Answers

I'm not sure what you mean with "introducing objects in relational systems". PostgreSQL indeed has custom types, but those are nothing like OOP.

AFAIK the only reason why PostgreSQL is sometimes called an "object-relational database" is because it supports table inheritance. However, the main use case of inheritance has actually been table partitioning; the performance limitations mean that it's not very useful for implementing "object inheritance" (The upcoming PostgreSQL 9.1 release will remove some of these limitations).

Bottom line: Nothing to see here, PostgreSQL is just another relational database.

like image 164
intgr Avatar answered Oct 04 '22 02:10

intgr


The preface of the Postgres 7 documentation explains why they consider themselves as having pioneered object-relational concepts (in Postgres 8 and later, this got all rephrased/restructured/deleted). The history document gives more details.

like image 24
Martin v. Löwis Avatar answered Oct 04 '22 00:10

Martin v. Löwis