Re: Table Inheritence and Partioning - Mailing list pgsql-performance

From Simon Riggs
Subject Re: Table Inheritence and Partioning
Date
Msg-id 1169458822.3776.245.camel@silverbirch.site
Whole thread Raw
In response to Table Inheritence and Partioning  (<ramachandra.bhaskaram@wipro.com>)
List pgsql-performance
On Wed, 2007-01-17, ramachandra.bhaskaram@wipro.com wrote

> We are having 3 tables;
> 1. persons <-- Base table and no data will be inserted in this table.
> 2. Person1 <-- Inherited table from persons all data will be inserted
> in this table.
> 3. PersonalInfo  <-- which is storing all personal information of the
> persons and is having the foreign key relationship with the persons
> table.
>
> When we try to insert the data in the personalInfo table it is
> throwing the error stating the primary key does not contain the given
> value.   But, if I try to select from the persons table it is showing
> the records from its inherited tables as well.     Can anybody tell me
> what might be the problem here?

http://www.postgresql.org/docs/8.2/static/ddl-inherit.html

answers your questions, I believe.

--
  Simon Riggs
  EnterpriseDB   http://www.enterprisedb.com



pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: [pgsql-advocacy] Postgres and really huge tables
Next
From: Laurent Manchon
Date:
Subject: slow result