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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Laurent Manchon | 2007-01-23 10:34:52 | slow result |
Previous Message | Josh Berkus | 2007-01-20 00:04:12 | Re: Postgres and really huge tables |