Re: Table Inheritence and Partioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2007-01-17, ramachandra.bhaskaram@xxxxxxxxx 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




[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux