Re: Table Inheritence and Partioning

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Table Inheritence and Partioning
Дата
Msg-id 1169458822.3776.245.camel@silverbirch.site
обсуждение исходный текст
Ответ на Table Inheritence and Partioning  (<ramachandra.bhaskaram@wipro.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [pgsql-advocacy] Postgres and really huge tables
Следующее
От: Laurent Manchon
Дата:
Сообщение: slow result