Postgresql database

From: Trinath Somanchi <trinath(dot)somanchi(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Postgresql database
Date: 2010-05-14 08:42:17
Message-ID: AANLkTikmPaFrIhuYUkxuhsC6kRgRJlmb0IfFAb7EE2x-@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi All,

I have Tree structured database to maintain.

Its as follows.

Vehicles
|__> Two Wheelers
|__> Manufacturer
|__> Name of Manufacturer
|__> Year of make.
|__> Manuf. Plant.
|__> Model.
|__> Model Name
|__> Model Version
|__> Model Re-make Version.
|__> Year of Release
|__> Serial Number
|__> Capacity
| |__> Capacity Type
| |__> Capacity Version
|__> Contact Information
|__> Company Name
|__> Company Address
| |__> Street Address
| | |__> Lane 1
| | |__> Lane 2
| |__> City
| |__> Pin
|__> Contact Information
| |__> Phone
| |__> Fax
| |__> Email
|__> Website
|__> Three Wheelers
|__> Manufacturer
|__> Name of Manufacturer
|__> Year of make.
|__> Manuf. Plant.
|__> Model.
|__> Model Name
|__> Model Version
|__> Model Re-make Version.
|__> Year of Release
|__> Serial Number
|__> Capacity
| |__> Capacity Type
| |__> Capacity Version
|__> Contact Information
|__> Company Name
|__> Company Address
| |__> Street Address
| | |__> Lane 1
| | |__> Lane 2
| |__> City
| |__> Pin
|__> Contact Information
| |__> Phone
| |__> Fax
| |__> Email
|__> Website
|__> Four Wheelers
|__> Manufacturer
|__> Name of Manufacturer
|__> Year of make.
|__> Manuf. Plant.
|__> Model.
|__> Model Name
|__> Model Version
|__> Model Re-make Version.
|__> Year of Release
|__> Serial Number
|__> Capacity
| |__> Capacity Type
| |__> Capacity Version
|__> Contact Information
|__> Company Name
|__> Company Address
| |__> Street Address
| | |__> Lane 1
| | |__> Lane 2
| |__> City
| |__> Pin
|__> Contact Information
| |__> Phone
| |__> Fax
| |__> Email
|__> Website

This way the data in the table is tree structured. Also A single
manufacturer has all mode of vehicles. I'm in my way to design this DB for
use in PgSQL. But for a vast data, data retrieval is a very costly task
(Joining all tables).

Can any one guide me of this design, on how the structure looks like. Hard
about Inheritance feature of pgSQL. But not aware of how implementation
goes.

Thanks in advance.

--
Regards,
----------------------------------------------
Trinath Somanchi,

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message silly sad 2010-05-14 09:14:01 Re: Postgresql database
Previous Message Rob Sargent 2010-05-13 15:18:03 Re: Invalid message format Exception