Skip site navigation (1) Skip section navigation (2)

Re: Table Inheritence and Partioning

From: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
To: <ramachandra(dot)bhaskaram(at)wipro(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Table Inheritence and Partioning
Date: 2007-01-22 09:40:22
Message-ID: 1169458822.3776.245.camel@silverbirch.site (view raw or flat)
Thread:
Lists: pgsql-performance
On Wed, 2007-01-17, ramachandra(dot)bhaskaram(at)wipro(dot)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



In response to

pgsql-performance by date

Next:From: Laurent ManchonDate: 2007-01-23 10:34:52
Subject: slow result
Previous:From: Josh BerkusDate: 2007-01-20 00:04:12
Subject: Re: Postgres and really huge tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group